/* ==========================================================================
   Family Spot — marketing site
   Tokens mirror src/theme/colors.ts so the page and the app stay one brand.
   ========================================================================== */

:root {
  --ink: #1a1a1a;
  --muted: #6b6b73;
  --primary: #4b3fa0;
  --primary-dk: #312e81;
  --primary-lt: #5b3fa8;
  --accent: #d4724a;
  --spot: #fcd34d;
  --success: #10b981;
  --warning: #f59e0b;
  --shared: #8b7fd0;

  --night-1: #171150;
  --night-2: #2d2468;
  --night-3: #3b2f85;

  --paper: #ffffff;
  --paper-2: #faf9fd;
  --paper-3: #f2f1f8;
  --line: rgba(18, 12, 54, 0.09);

  --display: "Fraunces", ui-serif, Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-sm: 0 1px 2px rgba(23, 17, 80, 0.05), 0 6px 20px -12px rgba(23, 17, 80, 0.18);
  --shadow-md: 0 2px 6px rgba(23, 17, 80, 0.06), 0 22px 50px -26px rgba(23, 17, 80, 0.3);
  --shadow-lg: 0 40px 90px -40px rgba(23, 17, 80, 0.55), 0 8px 30px -12px rgba(23, 17, 80, 0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.4rem); }

p { margin: 0; text-wrap: pretty; }
em { font-style: normal; }

a { color: var(--primary); text-decoration: none; }

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

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

.skip-link {
  position: fixed;
  top: 10px; left: 50%;
  transform: translate(-50%, -160%);
  z-index: 200;
  background: var(--paper);
  color: var(--primary);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.wrap--narrow { max-width: 780px; }

/* ── Grain overlay ─────────────────────────────────────────────────────── */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.9875rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }

.btn--primary {
  background: linear-gradient(135deg, #5f51c8, var(--primary) 55%, #3f3490);
  box-shadow: 0 10px 30px -10px rgba(75, 63, 160, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover { box-shadow: 0 18px 40px -12px rgba(75, 63, 160, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.28); }

.btn--light { background: #fff; color: var(--primary-dk); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.45); }
.btn--outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px rgba(75, 63, 160, 0.28); }
.btn--outline:hover { background: rgba(75, 63, 160, 0.06); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s;
}
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav.is-stuck {
  background: rgba(14, 10, 42, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 40px -24px rgba(0, 0, 0, 0.7);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand__mark {
  width: 26px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(252, 211, 77, 0.25));
}
.brand__mark--sm { width: 22px; }
.brand__word { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }

.nav__links { margin-left: auto; display: flex; gap: 28px; }
.nav__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--spot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 11px;
  width: 18px; height: 1.8px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu[hidden] { display: none; }
.menu {
  display: grid;
  gap: 4px;
  padding: 12px clamp(20px, 5vw, 40px) 22px;
  background: rgba(14, 10, 42, 0.95);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.menu a { color: rgba(255, 255, 255, 0.82); padding: 12px 4px; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.menu__cta { color: var(--spot) !important; border-bottom: 0 !important; font-weight: 600 !important; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(130px, 16vh, 190px) 0 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #3b2f85 0%, transparent 60%),
    linear-gradient(168deg, var(--night-1) 0%, #1c1557 45%, #241b63 100%);
  color: #fff;
  border-bottom-left-radius: clamp(28px, 4vw, 48px);
  border-bottom-right-radius: clamp(28px, 4vw, 48px);
}

.hero__aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; filter: blur(70px); }
.blob { position: absolute; border-radius: 50%; opacity: 0.5; }
.blob--1 { width: 46vw; height: 46vw; left: -6vw; top: -8vw; background: radial-gradient(circle, rgba(139, 127, 208, 0.75), transparent 68%); animation: drift 26s var(--ease) infinite alternate; }
.blob--2 { width: 38vw; height: 38vw; right: -4vw; top: 4vw; background: radial-gradient(circle, rgba(212, 114, 74, 0.5), transparent 66%); animation: drift 32s var(--ease) infinite alternate-reverse; }
.blob--3 { width: 34vw; height: 34vw; left: 38%; top: 34vw; background: radial-gradient(circle, rgba(252, 211, 77, 0.3), transparent 68%); animation: drift 38s var(--ease) infinite alternate; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, -3vw, 0) scale(1.14); }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
}

.hero__title { margin-bottom: 22px; }
.hero__title em {
  background: linear-gradient(100deg, #c4b5fd 10%, #fcd34d 55%, #f0a882 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.25rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 34ch;
  margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 clamp(40px, 6vh, 64px); }
.chips li {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.hero__device { margin: 0; display: grid; place-items: center; padding-bottom: clamp(30px, 6vh, 60px); }

/* ── Ticker ────────────────────────────────────────────────────────────── */
.hero__ticker {
  position: relative;
  overflow: hidden;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  gap: 18px;
  align-items: center;
  width: max-content;
  animation: slide 44s linear infinite;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.32);
  font-weight: 500;
}
.ticker__track i { color: rgba(252, 211, 77, 0.5); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Device frame ──────────────────────────────────────────────────────── */
.device {
  width: min(340px, 82vw);
  aspect-ratio: 340 / 700;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #3a3560, #14102e 42%, #2a2450);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 7px rgba(0, 0, 0, 0.55);
}
.device__screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.device__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0 18%, transparent 42%);
  mix-blend-mode: overlay;
}
.device--float { animation: bob 9s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-14px) rotate(0.6deg); }
}
.device--sm { width: min(300px, 78vw); aspect-ratio: 300 / 640; border-radius: 40px; padding: 9px; }
.device--sm .device__screen { border-radius: 32px; }

/* ── App mock: shared ──────────────────────────────────────────────────── */
.ap {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink);
  user-select: none;
}
.ap b { font-weight: 600; }

.ap__hero {
  background: linear-gradient(150deg, #171150, #2d2468 55%, #3b2f85);
  color: #fff;
  padding: 26px 16px 0;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}
.ap__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ap__date { font-size: 8px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.35); font-weight: 600; }
.ap__warn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 8px; font-weight: 600; letter-spacing: 0.02em;
  color: #fcd34d;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3);
}
.ap__warn i { width: 5px; height: 5px; border-radius: 50%; background: var(--warning); }

.ap__greet { font-family: var(--display); font-size: 19px; line-height: 1.2; margin: 10px 0 11px; font-weight: 600; }
.ap__greet span { color: #c4b5fd; }

.ap__members { display: flex; align-items: center; gap: 7px; }
.av {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  margin-right: -4px;
}
.av--1 { background: rgba(168, 159, 232, 0.2); box-shadow: inset 0 0 0 1.2px rgba(168, 159, 232, 0.55); }
.av--2 { background: rgba(240, 168, 130, 0.2); box-shadow: inset 0 0 0 1.2px rgba(240, 168, 130, 0.55); }
.av--3 { background: rgba(134, 239, 172, 0.2); box-shadow: inset 0 0 0 1.2px rgba(134, 239, 172, 0.55); }
.av--4 { background: rgba(249, 168, 212, 0.2); box-shadow: inset 0 0 0 1.2px rgba(249, 168, 212, 0.55); }
.ap__members em { font-size: 8.5px; color: rgba(255, 255, 255, 0.3); margin-left: 10px; font-style: normal; }

.ap__arc { width: 100%; margin-top: 6px; }
.ap__pulse { animation: halo 2.8s ease-in-out infinite; transform-origin: 201px 34.99px; }
@keyframes halo {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.35); }
}

.ap__stats { display: flex; border-top: 1px solid rgba(255, 255, 255, 0.07); margin-top: 2px; }
.ap__stats div { flex: 1; text-align: center; padding: 9px 0; }
.ap__stats div + div { border-left: 1px solid rgba(255, 255, 255, 0.07); }
.ap__stats b { display: block; font-family: var(--display); font-size: 16px; color: #c4b5fd; }
.ap__stats b.warn { color: #fcd34d; }
.ap__stats b.ok { color: #86efac; }
.ap__stats span { font-size: 7px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.3); font-weight: 600; }

.ap__body { flex: 1; padding: 12px 14px 0; overflow: hidden; }
.ap__filters { display: flex; gap: 6px; margin-bottom: 12px; }
.ap__filters span {
  padding: 4px 12px; border-radius: 999px;
  background: #fff; color: var(--muted);
  font-size: 9px; font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.ap__filters .on { background: #2d2468; color: #fff; }
.ap__sep { font-size: 7.5px; letter-spacing: 0.16em; color: #b8b8c2; font-weight: 700; margin-bottom: 8px; }

.tl { display: grid; gap: 6px; }
.tl__card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.tl__card .bar { width: 3px; flex: 0 0 3px; }
.bar--mine { background: #4b3fa0; }
.bar--theirs { background: #d4724a; }
.bar--shared { background: #8b5cf6; }
.bar--warn { background: var(--warning); }
.bar--live { background: #c4b5fd; }
.tl__card .t { width: 42px; display: grid; place-items: center; font-size: 9px; color: #b8b8c2; }
.tl__card .c { padding: 9px 10px 9px 0; min-width: 0; }
.tl__card .c b { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.tl__card .c small { color: #9b9ba6; font-size: 8.5px; }

.tl__card--now { background: linear-gradient(135deg, #2d2468, #3b2f85); }
.tl__card--now .t { color: rgba(255, 255, 255, 0.45); }
.tl__card--now .c b { color: #fff; }
.tl__card--now .c small { color: rgba(255, 255, 255, 0.5); }
.tl__card--clash { box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3); background: #fffdf7; }

.tag { font-size: 7px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 5px; border-radius: 5px; font-style: normal; }
.tag--now { background: rgba(255, 255, 255, 0.18); color: #fff; }
.tag--fix { background: rgba(245, 158, 11, 0.16); color: #b45309; }

.ap__tabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 8px 16px;
  background: #fff;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
}
.ap__tabs span { color: #c0c0cc; width: 22px; }
.ap__tabs .on { color: var(--primary); }
.ap__tabs .fab {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #4b3fa0, #6b5fc0);
  box-shadow: 0 8px 18px -6px rgba(75, 63, 160, 0.7);
  margin-top: -18px;
}
.ap__tabs .fab svg { width: 18px; }

/* ── App mock: Add / AI ────────────────────────────────────────────────── */
.ap--add { background: var(--paper-3); padding: 24px 14px 14px; gap: 10px; }
.add__hd { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.add__hd span { color: #b0b0bd; font-size: 13px; }
.add__hd b { font-family: var(--display); font-size: 16px; }

.add__box {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.typing { font-size: 11px; color: #2a2a34; min-height: 46px; }
.caret {
  display: inline-block;
  width: 1.5px; height: 11px;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: -1px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.add__mic { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.wave i {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6b5fc0, #4b3fa0);
  animation: vu 1s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 6px; animation-delay: 0s; }
.wave i:nth-child(2) { height: 12px; animation-delay: 0.08s; }
.wave i:nth-child(3) { height: 18px; animation-delay: 0.16s; }
.wave i:nth-child(4) { height: 9px; animation-delay: 0.24s; }
.wave i:nth-child(5) { height: 15px; animation-delay: 0.32s; }
.wave i:nth-child(6) { height: 20px; animation-delay: 0.4s; }
.wave i:nth-child(7) { height: 8px; animation-delay: 0.48s; }
.wave i:nth-child(8) { height: 13px; animation-delay: 0.56s; }
.wave i:nth-child(9) { height: 7px; animation-delay: 0.64s; }
@keyframes vu { 50% { transform: scaleY(0.35); } }
.add__stop { font-size: 9px; font-weight: 600; color: var(--primary); }

.add__cta {
  text-align: center;
  padding: 12px;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 11.5px;
  background: linear-gradient(135deg, #4b3fa0, #6b5fc0);
  box-shadow: 0 10px 22px -10px rgba(75, 63, 160, 0.8);
}
.add__or { text-align: center; font-size: 8.5px; letter-spacing: 0.14em; color: #a8a8b5; font-weight: 700; }
.add__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.add__card { border-radius: 14px; padding: 11px; color: #fff; }
.add__card b { display: block; font-size: 12px; }
.add__card small { font-size: 8.5px; opacity: 0.85; }
.add__card--task { background: linear-gradient(135deg, #c44a7c, #e891b4); }
.add__card--event { background: linear-gradient(135deg, #d4724a, #e8895e); }

.add__review { display: grid; gap: 6px; margin-top: 2px; }
.rev {
  background: #fff;
  border-radius: 12px;
  padding: 9px 11px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  animation: rise 0.6s var(--ease) both;
}
.rev:nth-child(1) { animation-delay: 0.1s; }
.rev:nth-child(2) { animation-delay: 0.25s; }
.rev:nth-child(3) { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.rev__k { font-size: 7px; font-weight: 700; letter-spacing: 0.1em; padding: 2px 6px; border-radius: 5px; }
.rev__k--event { background: #fff1e9; color: #b45309; }
.rev__k--task { background: #f7eaf1; color: #a13a68; }
.rev b { display: block; font-size: 11px; margin-top: 4px; }
.rev small { font-size: 8.5px; color: #9b9ba6; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 11vh, 132px) 0; position: relative; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }

.head { max-width: 620px; margin-bottom: clamp(38px, 6vh, 62px); }
.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.kicker--warn { color: #b45309; }
.kicker--green { color: #0d8f6b; }
.head h2 { margin-bottom: 16px; }
.sub { color: var(--muted); font-size: 1.0625rem; }
.sub + .sub { margin-top: 12px; }

/* ── Steps ─────────────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: s;
}
.steps li {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.steps li:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.steps__n {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  background: linear-gradient(140deg, var(--primary), #b9aef4);
  -webkit-background-clip: text;
  background-clip: text;
  display: block;
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 0.975rem; }

/* ── Spotlight ─────────────────────────────────────────────────────────── */
.spotlight {
  padding: clamp(72px, 11vh, 128px) 0;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(245, 158, 11, 0.14), transparent 60%),
    linear-gradient(180deg, #fffdf8, #fff9ee);
  border-block: 1px solid rgba(245, 158, 11, 0.16);
}
.spotlight__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.spotlight h2 { margin-bottom: 18px; }
.spotlight h2 em {
  background: linear-gradient(100deg, #b45309, #d4724a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 0.975rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.4em;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.13);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.3);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px; top: 0.72em;
  width: 7px; height: 4px;
  border-left: 1.7px solid var(--success);
  border-bottom: 1.7px solid var(--success);
  transform: rotate(-45deg);
}

.clash {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(245, 158, 11, 0.24);
  transform: rotate(-1.2deg);
}
.clash__hd {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  color: #b45309;
  margin-bottom: 12px;
}
.clash__hd i { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18); }
.clash__body { font-size: 0.95rem; color: #3a3a44; margin-bottom: 18px; }
.clash__pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.clash__side { padding: 14px; border-radius: var(--r-md); background: #f6f4fd; }
.clash__side--task { background: #fff4ee; }
.clash__side span { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; color: #8a8a98; }
.clash__side b { display: block; font-size: 0.95rem; margin: 5px 0 2px; }
.clash__side small { font-size: 0.78rem; color: var(--muted); }
.clash__vs { font-size: 0.72rem; color: #b9b9c5; font-weight: 700; }
.clash__actions { display: flex; gap: 8px; margin-top: 18px; }
.clash__actions b, .clash__actions span {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.clash__actions b { background: var(--primary); color: #fff; }
.clash__actions span { background: #f1f0f7; color: var(--muted); }

/* ── Bento ─────────────────────────────────────────────────────────────── */
.bento {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.cell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.cell::before {
  content: "";
  position: absolute;
  inset: -40% 55% 55% -40%;
  background: radial-gradient(circle, rgba(75, 63, 160, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.cell:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(75, 63, 160, 0.2); }
.cell:hover::before { opacity: 1; }
.cell h3 { margin-bottom: 9px; }
.cell p { color: var(--muted); font-size: 0.95rem; }
.cell--wide { grid-column: span 2; }

.cell__ico {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.cell__ico svg { width: 23px; }
.ico--purple { background: #efecfb; color: var(--primary); }
.ico--amber { background: #fff4e0; color: #b45309; }
.ico--green { background: #e7f9f2; color: #0d8f6b; }
.ico--orange { background: #fdeee7; color: #b35733; }

.pill {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #6b5fc0);
  color: #fff;
  vertical-align: 1px;
  margin-left: 2px;
}

/* ── AI section ────────────────────────────────────────────────────────── */
.ai__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.ai__art { display: grid; place-items: center; }
.ai h2 { margin-bottom: 18px; }

/* ── Split (calendar + tasks) ──────────────────────────────────────────── */
.split { display: grid; gap: clamp(18px, 2.4vw, 26px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.split__card h3 { margin: 22px 0 9px; }
.split__card p { color: var(--muted); font-size: 0.95rem; }

.mini {
  background: linear-gradient(180deg, #f7f6fc, #fff);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  font-size: 11px;
  user-select: none;
}
.mini__hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mini__hd b { font-family: var(--display); font-size: 15px; }
.mini__hd span { font-size: 9.5px; font-weight: 600; color: var(--primary); background: #efecfb; padding: 4px 10px; border-radius: 999px; }

.mini__wk, .mini__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.mini__wk span { font-size: 8px; font-weight: 700; letter-spacing: 0.06em; color: #a8a8b5; padding-bottom: 6px; }
.mini__grid span {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 10px;
  color: #4a4a56;
  border-radius: 9px;
}
.mini__grid .mute { color: #ccccd6; }
.mini__grid .sel { background: var(--primary); color: #fff; font-weight: 700; }
.mini__grid .has::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
}
.mini__grid .has--p::after { background: var(--primary); }
.mini__grid .has--o::after { background: var(--accent); }
.mini__grid .has--s::after { background: var(--shared); }

.mini__rows { margin-top: 14px; display: grid; gap: 6px; }
.mini__rows div {
  display: flex; align-items: center; gap: 9px;
  background: #fff;
  border-radius: 10px;
  padding: 9px 11px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.mini__rows .bar { width: 3px; height: 18px; border-radius: 2px; flex: 0 0 3px; }
.mini__rows b { flex: 1; font-size: 11px; font-weight: 600; }
.mini__rows span { font-size: 9.5px; color: #9b9ba6; }

.mini__chips { display: flex; gap: 5px; margin-bottom: 12px; flex-wrap: wrap; }
.mini__chips span { font-size: 9px; font-weight: 600; color: var(--muted); background: #fff; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.mini__chips .on { background: #2d2468; color: #fff; box-shadow: none; }

.mini__todo { display: grid; gap: 6px; }
.mini__todo div {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border-radius: 11px;
  padding: 10px 11px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.mini__todo .box {
  width: 15px; height: 15px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.6px #d4d3e0;
  flex: 0 0 15px;
}
.mini__todo .box--on {
  background: var(--success);
  box-shadow: none;
  color: #fff;
  font-size: 10px;
  display: grid; place-items: center;
  font-style: normal;
}
.mini__todo b { flex: 1; font-size: 11px; font-weight: 600; }
.mini__todo span { font-size: 9.5px; color: #9b9ba6; }
.mini__todo .done b { text-decoration: line-through; color: #b0b0bd; }

/* ── Plans ─────────────────────────────────────────────────────────────── */
.plans { display: grid; gap: clamp(18px, 2.4vw, 26px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 28px 30px;
  box-shadow: var(--shadow-sm);
}
.plan h3 { font-size: 1.3rem; }
.plan__price {
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 12px 0 6px;
  letter-spacing: -0.03em;
}
.plan__price span { display: block; font-family: var(--sans); font-size: 0.82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.plan__note { font-size: 0.88rem; color: var(--muted); }
.plan .ticks { margin: 24px 0 28px; }
.plan .btn { width: 100%; }

.plan--pro {
  position: relative;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(110% 80% at 15% 0%, #4b3fa0 0%, transparent 55%),
    linear-gradient(160deg, #221a5e, #171150 60%, #2d2468);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.plan--pro::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% -30%;
  height: 60%;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.16), transparent 65%);
}
.plan--pro .plan__note, .plan--pro .plan__price span { color: rgba(255, 255, 255, 0.6); }
.plan__year {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.plan__year b { font-size: 0.975rem; font-weight: 600; }
.plan__year span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.plan__year em {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #171150;
  background: var(--spot);
  padding: 4px 9px;
  border-radius: 999px;
}

.plan__flag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #171150;
  background: var(--spot);
  padding: 5px 11px;
  border-radius: 999px;
}
.ticks--light li { color: rgba(255, 255, 255, 0.78); }
.ticks--light li::before { background: rgba(252, 211, 77, 0.16); box-shadow: inset 0 0 0 1px rgba(252, 211, 77, 0.35); }
.ticks--light li::after { border-color: var(--spot); }
.plan__fine { font-size: 0.7rem; line-height: 1.5; color: rgba(255, 255, 255, 0.4); margin-top: 16px; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s;
}
.faq details[open] { border-color: rgba(75, 63, 160, 0.22); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { padding: 0 0 20px; color: var(--muted); font-size: 0.975rem; }

/* ── Get / CTA ─────────────────────────────────────────────────────────── */
.get {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(74px, 12vh, 130px) 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(90% 90% at 50% 0%, #3b2f85 0%, transparent 62%),
    linear-gradient(160deg, var(--night-1), #1d1559 55%, #2a2166);
}
.get h2 { margin-bottom: 14px; }
.get > .wrap > p { color: rgba(255, 255, 255, 0.68); }

.form {
  display: flex;
  gap: 10px;
  max-width: 470px;
  margin: 30px auto 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 15px 20px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: inherit;
  font-size: 0.975rem;
}
.form input::placeholder { color: rgba(255, 255, 255, 0.42); }
.form input:focus { background: rgba(255, 255, 255, 0.14); outline: none; box-shadow: inset 0 0 0 1.5px var(--spot); }
.hp { position: absolute; left: -9999px; }

.get__fine { font-size: 0.82rem; color: rgba(255, 255, 255, 0.42); }

.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.badge b { color: #fff; font-weight: 600; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.foot { background: #100c34; color: #fff; padding: clamp(44px, 6vh, 70px) 0 28px; }
.foot__inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__brand p { font-family: var(--display); font-size: 1.05rem; line-height: 1.35; }
.foot__brand span { font-family: var(--sans); font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); font-weight: 400; }
.foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot__links a { color: rgba(255, 255, 255, 0.62); font-size: 0.9rem; }
.foot__links a:hover { color: #fff; }
.foot__legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.foot__legal p { font-size: 0.74rem; color: rgba(255, 255, 255, 0.34); }

/* ── Legal / support pages ─────────────────────────────────────────────── */
.doc { padding: clamp(120px, 16vh, 170px) 0 clamp(60px, 9vh, 100px); }
.doc__head { margin-bottom: 44px; }
.doc__head h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); margin-bottom: 12px; }
.doc__head p { color: var(--muted); }
.doc__body { max-width: 720px; }
.doc__body h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); margin: 42px 0 12px; }
.doc__body h3 { margin: 26px 0 8px; }
.doc__body p, .doc__body li { color: #43434e; font-size: 1rem; }
.doc__body p + p { margin-top: 12px; }
.doc__body ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc__body a { text-decoration: underline; text-underline-offset: 3px; }
.doc .nav { position: absolute; }
.doc-page .nav.is-stuck { background: rgba(14, 10, 42, 0.85); }
.doc-page .nav__inner .brand,
.doc-page .nav__links a { color: #fff; }
.doc__top {
  position: absolute;
  inset: 0 0 auto;
  height: 400px;
  background: linear-gradient(160deg, var(--night-1), #241b63);
  border-bottom-left-radius: clamp(24px, 3vw, 40px);
  border-bottom-right-radius: clamp(24px, 3vw, 40px);
  z-index: -1;
}
.doc-page { position: relative; }
.doc__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}
.doc__head { color: #fff; }
.doc__head p { color: rgba(255, 255, 255, 0.6); }
.doc__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.doc__cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 8px; }
.doc__cards a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.doc__cards a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc__cards b { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 6px; color: var(--ink); }
.doc__cards span { color: var(--muted); font-size: 0.92rem; }

/* ── Reveal ────────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

/* The hero animates itself so it is never blank while JS boots. */
.hero [data-reveal] { animation: heroIn 0.85s var(--ease) forwards; }
.hero__copy > [data-reveal]:nth-child(1) { animation-delay: 0.04s; }
.hero__copy > [data-reveal]:nth-child(2) { animation-delay: 0.12s; }
.hero__copy > [data-reveal]:nth-child(3) { animation-delay: 0.2s; }
.hero__copy > [data-reveal]:nth-child(4) { animation-delay: 0.28s; }
.hero__copy > [data-reveal]:nth-child(5) { animation-delay: 0.36s; }
.hero__device { animation-delay: 0.24s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero__inner, .spotlight__inner, .ai__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; margin-inline: auto; max-width: 620px; }
  .hero__lede { margin-inline: auto; }
  .hero__actions, .chips { justify-content: center; }
  .spotlight__art, .ai__art { order: -1; }
  .cell--wide { grid-column: span 1; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  html { scroll-padding-top: 80px; }
  .clash { transform: none; }
  .clash__pair { grid-template-columns: 1fr; }
  .clash__vs { display: none; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .nav, .hero__aurora, .grain, .get, .badges { display: none; }
  body { color: #000; background: #fff; }
}
