/* WhereIsMyHour website. Theme tokens first, then layout, then components. */

:root {
  --brand-1: #6366f1;
  --brand-2: #a855f7;
  --brand-grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --font-display: 'Space Grotesk', Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* dark (default) */
  --bg: #07060f;
  --bg-2: #0d0b1c;
  --card: rgba(255, 255, 255, 0.035);
  --card-solid: #12101f;
  --border: rgba(255, 255, 255, 0.09);
  --text: #eeedff;
  --muted: #9d9abb;
  --faint: #5f5c7a;
  --grid: rgba(139, 120, 255, 0.07);
  --glow: rgba(124, 92, 245, 0.35);
  --nav-bg: rgba(7, 6, 15, 0.72);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #fbfaff;
    --bg-2: #f3f1ff;
    --card: #ffffff;
    --card-solid: #ffffff;
    --border: #e6e2f7;
    --text: #15132c;
    --muted: #5e5a7d;
    --faint: #a6a2c2;
    --grid: rgba(99, 102, 241, 0.07);
    --glow: rgba(124, 92, 245, 0.18);
    --nav-bg: rgba(251, 250, 255, 0.78);
    color-scheme: light;
  }
}
:root[data-theme='light'] {
  --bg: #fbfaff;
  --bg-2: #f3f1ff;
  --card: #ffffff;
  --card-solid: #ffffff;
  --border: #e6e2f7;
  --text: #15132c;
  --muted: #5e5a7d;
  --faint: #a6a2c2;
  --grid: rgba(99, 102, 241, 0.07);
  --glow: rgba(124, 92, 245, 0.18);
  --nav-bg: rgba(251, 250, 255, 0.78);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 8px;
}
::selection {
  background: var(--brand-1);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--brand-1);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}
.skip:focus {
  left: 8px;
}

/* ---------- background: grid + glow ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

/* ---------- typography ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 700;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
.grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 560px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.eyebrow b {
  color: var(--brand-2);
  font-weight: 500;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: ping 2s infinite;
}
@keyframes ping {
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px var(--glow);
}
.btn-ghost {
  border: 1px solid var(--border);
  background: var(--card);
}
.btn-ghost:hover {
  border-color: var(--brand-1);
  transform: translateY(-2px);
}
.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 18px 0 14px;
  border-radius: 16px;
  background: #0b0a12;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s var(--ease);
}
.store:hover {
  transform: translateY(-2px);
}
.store small {
  display: block;
  font-size: 0.66rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.store strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.15;
}
.store.soon {
  opacity: 0.85;
}
.store .tag {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.25);
  color: #e3d2ff;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.brand .hi {
  color: var(--brand-2);
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--card);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s;
}
.icon-btn:hover {
  border-color: var(--brand-1);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.theme-sun {
  display: none;
}
:root[data-theme='light'] .theme-sun,
.is-light .theme-sun {
  display: block;
}
:root[data-theme='light'] .theme-moon,
.is-light .theme-moon {
  display: none;
}
.menu-btn {
  display: none;
}
.mobile-menu {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero .bg-glow {
  top: -260px;
  right: -200px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  margin: 22px 0 22px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 22px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-note svg {
  width: 16px;
  height: 16px;
  color: #34d399;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
  font-size: 0.85rem;
  font-weight: 600;
  animation: bob 6s ease-in-out infinite;
  z-index: 3;
}
.float i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
}
.float i svg {
  width: 16px;
  height: 16px;
}
.float small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
}
.f1 {
  top: 12%;
  left: -4%;
}
.f2 {
  top: 46%;
  right: -6%;
  animation-delay: -2s;
}
.f3 {
  bottom: 8%;
  left: 0;
  animation-delay: -4s;
}
@keyframes bob {
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- phone mockup ---------- */
.phone {
  --p-bg: #111113;
  --p-surface: #1e1e21;
  --p-text: #f2f2f7;
  --p-sub: #8e8e93;
  --p-line: #3a3a3e;
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #2b2a3a, #0e0d16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px -30px rgba(70, 50, 180, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.phone[data-mode='light'] {
  --p-bg: #ffffff;
  --p-surface: #f4f4f6;
  --p-text: #1c1c1e;
  --p-sub: #8e8e93;
  --p-line: #d9d9de;
}
.phone .screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--p-bg);
  color: var(--p-text);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.35;
  transition: background 0.35s, color 0.35s;
}
.phone .notch {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 84px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
  z-index: 5;
}
.app {
  padding: 40px 13px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.app[hidden] {
  display: none;
}
.app-kicker {
  color: var(--brand-1);
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0.06em;
}
.app-title {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin-top: 1px;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 10px 0 8px;
}
.week span {
  border-radius: 9px;
  background: var(--p-surface);
  text-align: center;
  padding: 4px 0 5px;
  font-weight: 800;
  font-size: 11.5px;
}
.week span small {
  display: block;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--p-sub);
}
.week span.on {
  background: var(--brand-1);
  color: #fff;
}
.week span.on small {
  color: rgba(255, 255, 255, 0.8);
}
.sumbar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--p-surface);
  border-radius: 10px;
  padding: 7px 9px;
  font-weight: 700;
  font-size: 9px;
}
.sumbar .track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--p-bg);
  overflow: hidden;
}
.sumbar .track b {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--brand-1);
  border-radius: 2px;
}
.sumbar em {
  font-style: normal;
  color: var(--p-sub);
  font-weight: 600;
}
.tl {
  position: relative;
  margin-top: 10px;
}
.tl::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 14px;
  bottom: 20px;
  width: 1.5px;
  background: var(--p-line);
}
.tl-row {
  display: grid;
  grid-template-columns: 44px 18px 1fr;
  align-items: start;
  margin-bottom: 6px;
}
.tl-time {
  font-weight: 800;
  font-size: 9px;
  padding-top: 9px;
}
.tl-time small {
  display: block;
  color: var(--p-sub);
  font-weight: 600;
  font-size: 7.5px;
}
.node {
  width: 10px;
  height: 10px;
  margin: 11px auto 0;
  border-radius: 50%;
  border: 2.5px solid var(--c);
  background: var(--p-bg);
  position: relative;
  z-index: 1;
}
.node.done {
  background: var(--c);
}
.node.pin {
  width: auto;
  height: auto;
  border: 0;
  background: none;
  margin-top: 6px;
  color: var(--c);
}
.node.pin svg {
  width: 16px;
  height: 16px;
  margin: 0 auto;
}
.card {
  --tint: color-mix(in srgb, var(--c) 14%, transparent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 11px;
  background: var(--tint);
  overflow: hidden;
}
.card.done {
  opacity: 0.55;
}
.card.done b {
  text-decoration: line-through;
}
.tile {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--c);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.tile svg {
  width: 14px;
  height: 14px;
}
.card b {
  display: block;
  font-size: 10.5px;
}
.card small {
  display: block;
  color: var(--p-sub);
  font-size: 8px;
  font-weight: 600;
}
.card .left {
  color: var(--c);
  font-weight: 800;
}
.check {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--p-line);
  flex-shrink: 0;
}
.check.on {
  background: var(--c);
  border-color: var(--c);
  display: grid;
  place-items: center;
}
.check.on::after {
  content: '';
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.card .prog {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 2.5px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--c) 25%, transparent);
}
.card .prog b {
  display: block;
  height: 100%;
  width: 55%;
  background: var(--c);
  border-radius: 2px;
}
.free {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 6px 62px;
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--p-surface);
  color: var(--p-sub);
  font-weight: 700;
  font-size: 8px;
}
.free.here {
  background: color-mix(in srgb, var(--brand-1) 16%, transparent);
  color: var(--brand-1);
  outline: 1px solid var(--brand-1);
}
.tabbar {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--p-line);
  padding: 7px 0 14px;
  text-align: center;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--p-sub);
}
.tabbar span.on {
  color: var(--brand-1);
}
.tabbar svg {
  width: 15px;
  height: 15px;
  margin: 0 auto 2px;
}
.fab {
  position: absolute;
  right: 14px;
  bottom: 62px;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--brand-1);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -6px var(--brand-1);
}
.fab svg {
  width: 20px;
  height: 20px;
}

/* dashboard mock */
.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--p-surface);
  margin: 10px 0;
  text-align: center;
  font-weight: 700;
  font-size: 8.5px;
  color: var(--p-sub);
}
.seg span {
  padding: 5px 0;
  border-radius: 7px;
}
.seg span.on {
  background: var(--p-bg);
  color: var(--p-text);
}
.hero-num {
  display: flex;
  align-items: center;
  background: var(--p-surface);
  border-radius: 14px;
  padding: 11px;
  gap: 10px;
}
.hero-num big {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-num .k {
  color: var(--p-sub);
  font-weight: 800;
  font-size: 7.5px;
}
.mini-track {
  height: 4px;
  border-radius: 2px;
  background: var(--p-bg);
  overflow: hidden;
  margin-top: 4px;
}
.mini-track b {
  display: block;
  height: 100%;
  width: 72%;
  background: var(--brand-1);
}
.streak {
  text-align: center;
  border-left: 1px solid var(--p-line);
  padding-left: 12px;
  font-weight: 800;
  font-size: 16px;
}
.streak small {
  display: block;
  color: var(--p-sub);
  font-size: 7.5px;
  font-weight: 600;
}
.tiles3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.tiles3 div {
  background: var(--p-surface);
  border-radius: 10px;
  padding: 7px;
  font-weight: 800;
  font-size: 11px;
}
.tiles3 small {
  display: block;
  color: var(--p-sub);
  font-weight: 600;
  font-size: 7px;
}
.chart-card {
  background: var(--p-surface);
  border-radius: 14px;
  padding: 10px;
  margin-top: 8px;
}
.chart-card h6 {
  margin: 0 0 8px;
  font-size: 10px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 78px;
  border-bottom: 1px solid var(--p-line);
}
.bars span {
  flex: 1;
  position: relative;
  height: var(--p);
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--brand-1) 28%, transparent);
}
.bars span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--d);
  border-radius: 3px 3px 0 0;
  background: var(--brand-1);
}
.bar-lbl {
  display: flex;
  justify-content: space-around;
  color: var(--p-sub);
  font-size: 7px;
  font-weight: 700;
  margin-top: 3px;
}
.donut-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.donut {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(#54a0ff 0 38%, var(--p-surface) 38% 38.8%, #ff9f43 38.8% 60%, var(--p-surface) 60% 60.8%, #4cd07d 60.8% 80%, var(--p-surface) 80% 80.8%, #8e7cff 80.8% 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.donut::after {
  content: '';
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--p-surface);
}
.legend {
  flex: 1;
  display: grid;
  gap: 3px;
  font-size: 8.5px;
  font-weight: 700;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--c);
}
.legend em {
  margin-left: auto;
  color: var(--p-sub);
  font-style: normal;
}

/* focus mock */
.focus {
  align-items: center;
  text-align: center;
}
.focus .tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin: 18px auto 8px;
}
.focus .tile svg {
  width: 20px;
  height: 20px;
}
.focus h5 {
  margin: 0;
  font-size: 16px;
}
.ring {
  --deg: 220deg;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  margin: 26px auto 18px;
  background: conic-gradient(var(--c) var(--deg), color-mix(in srgb, var(--c) 18%, transparent) 0);
  display: grid;
  place-items: center;
}
.ring div {
  width: 166px;
  height: 166px;
  border-radius: 50%;
  background: var(--p-bg);
  display: grid;
  place-content: center;
}
.ring strong {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ring small {
  color: var(--p-sub);
  font-weight: 600;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.controls span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--p-surface);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 10px;
}
.controls span.main {
  width: 60px;
  height: 60px;
  background: var(--c);
  color: #fff;
}
.controls svg {
  width: 22px;
  height: 22px;
}

/* editor mock */
.ed-top {
  display: flex;
  justify-content: space-between;
  color: var(--p-sub);
  font-weight: 700;
  font-size: 10px;
}
.ed-top b {
  color: var(--p-text);
}
.ed-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 4px;
}
.ed-title .tile {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.ed-title small {
  color: var(--p-sub);
  font-weight: 600;
  font-size: 8px;
}
.ed-title b {
  display: block;
  font-size: 15px;
}
.ed h6 {
  margin: 12px 0 6px;
  font-size: 10.5px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.chips span {
  padding: 5px 9px;
  border-radius: 9px;
  background: var(--p-surface);
  font-weight: 700;
  font-size: 8.5px;
}
.chips span.on {
  background: var(--c, var(--brand-1));
  color: #fff;
}
.wheel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.wheel div {
  width: 64px;
  text-align: center;
  font-weight: 600;
  color: var(--p-sub);
}
.wheel div span {
  display: block;
  padding: 3px 0;
}
.wheel div span.on {
  background: var(--p-surface);
  color: var(--p-text);
  font-weight: 800;
  font-size: 14px;
  border-radius: 7px;
}
.swatches {
  display: flex;
  gap: 6px;
}
.swatches i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c);
}
.swatches i.on {
  outline: 2.5px solid color-mix(in srgb, var(--c) 40%, transparent);
  outline-offset: 1px;
}
.ed-cta {
  margin-top: auto;
  margin-bottom: 16px;
  height: 38px;
  border-radius: 19px;
  background: var(--c);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* ---------- stats strip ---------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 20px;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: 0;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scroll 38s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  color: var(--faint);
  white-space: nowrap;
}
.marquee-track span::after {
  content: '✦';
  color: var(--brand-2);
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */
section {
  position: relative;
}
.section {
  padding: 120px 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head .mono {
  color: var(--brand-2);
  display: block;
  margin-bottom: 18px;
}
.section-head .mono em {
  color: var(--faint);
  font-style: normal;
}
.section-head p {
  margin-top: 18px;
}
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-1) 50%, var(--border));
}
.feature:hover::before {
  opacity: 1;
}
.feature.wide {
  grid-column: span 2;
}
.f-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--c, var(--brand-grad));
  margin-bottom: 22px;
  box-shadow: 0 10px 24px -10px var(--c, var(--brand-1));
}
.f-icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  margin-bottom: 8px;
}
.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}
.feature .num {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--faint);
}

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
}
.step .mono {
  color: var(--brand-2);
}
.step h3 {
  font-size: 1.6rem;
  margin: 14px 0 10px;
}
.step p {
  color: var(--muted);
}
.step-line {
  position: absolute;
  top: 44px;
  right: -17px;
  width: 18px;
  height: 2px;
  background: var(--brand-grad);
}
.step:last-child .step-line {
  display: none;
}

/* screens */
.screens-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.tabs {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  gap: 4px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}
.tabs button[aria-selected='true'] {
  background: var(--brand-grad);
  color: #fff;
}
.mode-toggle {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
}
.mode-toggle button {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
}
.mode-toggle button[aria-pressed='true'] {
  background: var(--text);
  color: var(--bg);
}
.screens-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 50px;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: radial-gradient(600px circle at 25% 50%, var(--glow), transparent 60%), var(--card);
}
.screens-stage .phone-wrap {
  display: flex;
  justify-content: center;
}
.screen-panel[hidden] {
  display: none;
}
.screen-copy .mono {
  color: var(--brand-2);
}
.screen-copy h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 12px 0 14px;
}
.screen-copy p {
  color: var(--muted);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ticks li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 7px;
  background: var(--brand-grad)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center/12px no-repeat;
}
.phone-swap {
  animation: swap 0.5s var(--ease);
}
@keyframes swap {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

/* reports */
.reports-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: start;
}
.report-tabs {
  margin-bottom: 18px;
}
.paper {
  --ink: #15132c;
  --ink-2: #6b6890;
  --rule: #ebe8f7;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12), 0 40px 80px -40px rgba(70, 50, 180, 0.6);
  transform: rotate(-0.6deg);
  transition: transform 0.4s var(--ease);
}
.paper:hover {
  transform: rotate(0deg) translateY(-4px);
}
.paper-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.paper-head img {
  border-radius: 10px;
}
.paper-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.paper-head small {
  color: var(--ink-2);
  font-size: 0.82rem;
}
.paper-badge {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 8px;
  background: #fde8e8;
  color: #d23b3b;
  font-size: 0.68rem;
}
.paper-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0 6px;
}
.paper-tiles div {
  background: #f5f4fb;
  border-radius: 12px;
  padding: 10px 12px;
}
.paper-tiles b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.paper-tiles span {
  color: var(--ink-2);
  font-size: 0.72rem;
}
.paper-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 10px;
  font-weight: 700;
  font-size: 0.86rem;
}
.legend-inline {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend-inline i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-left: 6px;
}
.lp {
  background: rgba(99, 102, 241, 0.28);
}
.ld {
  background: var(--brand-1);
}
.paper-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.paper-bars .col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.paper-bars .p,
.paper-bars .d {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 3px 3px 0 0;
  transition: height 0.6s var(--ease);
}
.paper-bars .p {
  background: rgba(99, 102, 241, 0.28);
}
.paper-bars .d {
  background: var(--brand-1);
}
.paper-bars .lbl {
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.62rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.paper-acts {
  margin-top: 26px;
  display: grid;
  gap: 9px;
}
.act {
  display: grid;
  grid-template-columns: 1fr 64px 110px;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
}
.act .name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.act .name i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
}
.act .t {
  color: var(--ink-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.act .hb {
  height: 6px;
  border-radius: 3px;
  background: #f0eff8;
  overflow: hidden;
}
.act .hb b {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--c);
  transition: width 0.6s var(--ease);
}
.paper-foot {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--ink-2);
  font-size: 0.68rem;
}
.reports-side .ticks {
  margin: 0 0 28px;
}
.reports-side .ticks span {
  color: var(--muted);
}
.reports-side .ticks strong {
  color: var(--text);
}
.csv pre {
  font-size: 0.78rem;
}
.release-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.72rem;
  opacity: 0.85;
}
.release-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* changelog */
.release {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  margin-top: 22px;
}
.release.latest {
  border-color: color-mix(in srgb, var(--brand-1) 55%, var(--border));
  box-shadow: 0 30px 60px -40px var(--glow);
}
.release-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.release-top h2 {
  margin: 0 !important;
  font-size: 1.6rem;
}
.chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border: 1px solid var(--border);
  color: var(--muted);
}
.chip.new {
  background: var(--brand-grad);
  color: #fff;
  border: 0;
}
.release .btn {
  margin-top: 18px;
}

/* privacy / code card */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.code {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-solid);
  overflow: hidden;
  box-shadow: 0 30px 70px -40px var(--glow);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.code-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--faint);
}
.code-bar i:nth-child(1) {
  background: #ff5f57;
}
.code-bar i:nth-child(2) {
  background: #febc2e;
}
.code-bar i:nth-child(3) {
  background: #28c840;
}
.code-bar span {
  margin-left: 8px;
}
.code pre {
  margin: 0;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.8;
  overflow-x: auto;
  counter-reset: line;
}
.code pre span.l {
  display: block;
  padding: 0 20px 0 0;
}
.code pre span.l::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 44px;
  text-align: right;
  padding-right: 18px;
  color: var(--faint);
}
.tk-k {
  color: #c084fc;
}
.tk-s {
  color: #34d399;
}
.tk-n {
  color: #fbbf24;
}
.tk-c {
  color: var(--faint);
}
.tk-p {
  color: #818cf8;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.pill-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.9rem;
  font-weight: 500;
}
.pill-list svg {
  width: 16px;
  height: 16px;
  color: var(--brand-2);
}

/* faq */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: color-mix(in srgb, var(--brand-1) 50%, var(--border));
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--brand-2);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* final cta */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 80px 40px;
  text-align: center;
  background: var(--brand-grad);
  color: #fff;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.cta > * {
  position: relative;
}
.cta img {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  margin: 0 auto 26px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}
.cta p {
  opacity: 0.88;
  max-width: 520px;
  margin: 16px auto 32px;
  font-size: 1.1rem;
}
.cta .hero-ctas {
  justify-content: center;
  margin: 0;
}
.cta .btn-light {
  background: #fff;
  color: #3b2fb8;
}
.cta .btn-light:hover {
  transform: translateY(-2px);
}

/* footer */
.footer {
  padding: 70px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 120px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 300px;
  font-size: 0.95rem;
}
.footer h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer ul a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer ul a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.88rem;
}
.footer-bottom a {
  color: var(--muted);
}
.footer-bottom a:hover {
  color: var(--brand-2);
}

/* ---------- legal / content pages ---------- */
.page {
  padding: 140px 0 40px;
}
.doc {
  max-width: 780px;
  margin: 0 auto;
}
.doc .mono {
  color: var(--brand-2);
}
.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 14px 0 10px;
}
.doc .meta {
  color: var(--faint);
  margin-bottom: 40px;
}
.doc h2 {
  font-size: 1.5rem;
  margin: 44px 0 12px;
  letter-spacing: -0.02em;
}
.doc p,
.doc li {
  color: var(--muted);
}
.doc p + p {
  margin-top: 12px;
}
.doc ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.doc a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc strong {
  color: var(--text);
}
.doc a.btn {
  text-decoration: none;
}
.doc a.btn-primary {
  color: #fff;
}
.doc a.btn-ghost {
  color: var(--text);
}
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--brand-1) 40%, var(--border));
  background: color-mix(in srgb, var(--brand-1) 8%, transparent);
  margin: 26px 0;
}
.callout svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--brand-2);
}
.callout p {
  color: var(--text);
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.d1 {
  transition-delay: 0.08s;
}
.d2 {
  transition-delay: 0.16s;
}
.d3 {
  transition-delay: 0.24s;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 880px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .mobile-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 49;
    display: grid;
    gap: 4px;
    padding: 16px 20px 24px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .mobile-menu.open {
    transform: none;
  }
  .mobile-menu a {
    padding: 12px 6px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu .btn {
    margin-top: 12px;
    justify-content: center;
  }
  .hero {
    padding-top: 120px;
  }
  .hero-grid,
  .privacy-grid,
  .screens-stage,
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .paper {
    transform: none;
    padding: 18px;
  }
  .paper-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .act {
    grid-template-columns: 1fr 56px 70px;
  }
  .hero-visual {
    margin-top: 30px;
  }
  .screens-stage {
    padding: 30px 20px;
    gap: 30px;
  }
  .screen-copy {
    order: -1;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step-line {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 90px 0;
  }
}
@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
  .feature.wide {
    grid-column: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .float {
    display: none;
  }
  .phone {
    width: 270px;
  }
  .cta {
    padding: 60px 22px;
    border-radius: 26px;
  }
  .hero-ctas .btn,
  .hero-ctas .store {
    width: 100%;
    justify-content: center;
  }
  .screens-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .tabs {
    justify-content: center;
  }
  .mode-toggle {
    align-self: center;
  }
}

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