/* ════════════════════════════════════════════════════════════
   Juttr — marketing site
   Self-hosted Geist · teal accent · dark, premium, local-first
   ════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0b0f;
  --bg-2: #0d0f15;
  --surface: rgba(255, 255, 255, 0.024);
  --surface-2: rgba(255, 255, 255, 0.045);
  --surface-3: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f1f3f6;
  --text-dim: rgba(241, 243, 246, 0.62);
  --text-faint: rgba(241, 243, 246, 0.4);
  --teal: #2dd4bf;
  --teal-bright: #5eead4;
  --teal-soft: rgba(45, 212, 191, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --maxw: 1140px;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint top-down ambient wash */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(45, 212, 191, 0.08), transparent 60%),
    radial-gradient(900px 500px at 85% 8%, rgba(91, 141, 239, 0.05), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(45, 212, 191, 0.28); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ─────────────── Buttons ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 540;
  letter-spacing: -0.01em;
  border-radius: 980px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn svg { flex: 0 0 auto; }
.btn-sm { font-size: 13.5px; padding: 8px 16px; }
.btn-lg { font-size: 15.5px; padding: 14px 24px; }
.btn-accent {
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  color: #04201c;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px -8px rgba(45, 212, 191, 0.5);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 16px 40px -10px rgba(45, 212, 191, 0.6); }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }

/* ─────────────── Nav ─────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 60px;
  padding: 0 28px;
  background: rgba(10, 11, 15, 0.6);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled { background: rgba(10, 11, 15, 0.86); border-bottom-color: var(--border); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 24px; height: 24px; border-radius: 7px; }
.nav-logo span { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ─────────────── Hero ─────────────── */
.hero {
  position: relative;
  padding: 150px 28px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-glow {
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: min(1000px, 100%); height: 700px;
  background: radial-gradient(ellipse at 50% 30%, rgba(45, 212, 191, 0.16), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 7px 15px 7px 13px;
  margin-bottom: 28px;
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18); }

.hero-title {
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(110deg, var(--teal-bright), var(--teal) 55%, #1f9e8e);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.65vw, 20px);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero-actions.center { justify-content: center; }
.hero-foot { margin-top: 22px; font-size: 13px; color: var(--text-faint); }

/* ─────────────── Browser frame ─────────────── */
.browser-frame {
  background: linear-gradient(180deg, #14171f, #0e1016);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 40px 90px -30px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.bf-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.bf-dot { width: 11px; height: 11px; border-radius: 50%; }
.bf-r { background: #ff5f57; } .bf-y { background: #febc2e; } .bf-g { background: #28c840; }
.bf-url {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 8px;
  flex: 1;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-faint);
}
.bf-shot { position: relative; background: var(--bg); }
.bf-shot img { width: 100%; height: auto; display: block; }

.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin-top: 64px;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: auto 8% -40px;
  height: 90px;
  background: radial-gradient(ellipse at 50% 0%, rgba(45, 212, 191, 0.28), transparent 70%);
  filter: blur(26px);
  z-index: -1;
}
.browser-frame-hero { transform: perspective(1800px) rotateX(2deg); }

/* ─────────────── Trust strip ─────────────── */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 70px auto 0;
  padding: 0 28px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-faint);
  position: relative;
  z-index: 1;
}
.trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* ─────────────── Section base ─────────────── */
.section { padding: 130px 0; position: relative; }
.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--teal);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.section-sub {
  margin-top: 18px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-dim);
  line-height: 1.62;
  max-width: 560px;
}
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ─────────────── Apps showcase ─────────────── */
.apps { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012) 50%, transparent); }
.showcase { margin-top: 64px; }
.showcase-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 34px;
}
.rail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 520;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 9px 16px 9px 13px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.18s var(--ease);
}
.rail-btn svg { width: 16px; height: 16px; opacity: 0.7; transition: opacity 0.2s; }
.rail-btn:hover { color: var(--text); background: var(--surface-2); transform: translateY(-1px); }
.rail-btn.active {
  color: #04201c;
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  border-color: transparent;
  box-shadow: 0 8px 22px -8px rgba(45, 212, 191, 0.55);
}
.rail-btn.active svg { opacity: 1; }

.showcase-stage { max-width: 1000px; margin: 0 auto; }
.showcase-shot { aspect-ratio: 1600 / 1000; }
.showcase-shot img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.showcase-shot img.active { opacity: 1; }
.showcase-caption {
  text-align: center;
  margin-top: 22px;
  font-size: 15px;
  color: var(--text-dim);
  min-height: 24px;
}
.showcase-caption strong { color: var(--text); font-weight: 600; }

/* ─────────────── Speed ─────────────── */
.speed-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.feature-list { margin-top: 40px; }
.feature-row {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.feature-row:first-child { border-top: none; padding-top: 0; }
.feature-ico {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.feature-row h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.015em; }
.feature-row p { font-size: 14.5px; color: var(--text-dim); line-height: 1.55; }

.speed-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.stat-card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-3px); }
.stat-num {
  font-family: var(--mono);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.55));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-num span { font-size: 22px; color: var(--text-faint); -webkit-text-fill-color: var(--text-faint); }
.stat-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }

/* ─────────────── Bento ─────────────── */
.bento-sec { background: var(--bg-2); }
.bento {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 248px;
  gap: 16px;
}
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.bento-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.b-focus { grid-column: span 4; grid-row: span 2; }
.b-boards { grid-column: span 2; }
.b-notes { grid-column: span 2; }
.b-stat { grid-column: span 2; padding: 30px; justify-content: center; }
.b-analytics { grid-column: span 4; }
.b-calendar { grid-column: span 6; }

.bento-text { position: relative; z-index: 2; padding: 26px 26px 16px; flex: 0 0 auto; }
.bento-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.bento-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 7px; }
.b-stat h3 { font-size: 19px; }
.bento-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.bento-crop {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-left: 22px;
  border-top-left-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  border-right: none; border-bottom: none;
  box-shadow: -12px -12px 40px -16px rgba(0, 0, 0, 0.6);
}
.bento-crop img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.b-focus .bento-crop img { object-position: center center; }
.stat-num.big {
  font-family: var(--mono);
  font-size: 56px;
  -webkit-text-fill-color: transparent;
}

/* ─────────────── Theme demo ─────────────── */
.theme-demo {
  margin-top: 60px;
  background: linear-gradient(180deg, #14171f, #0e1016);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.theme-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 26px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.ctrl { display: flex; flex-direction: column; gap: 9px; }
.ctrl.grow { flex: 1; min-width: 150px; }
.ctrl-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint);
  display: flex; gap: 8px; align-items: center;
}
.ctrl-label em { font-style: normal; font-family: var(--mono); color: var(--teal); letter-spacing: 0; text-transform: none; }
.seg { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 980px; padding: 3px; }
.seg-btn {
  font-family: var(--sans); font-size: 12.5px; font-weight: 540;
  color: var(--text-dim);
  background: transparent; border: none; border-radius: 980px;
  padding: 6px 16px; cursor: pointer; transition: color 0.2s, background 0.2s;
}
.seg-btn.active { background: #fff; color: #111; }
.swatches { display: flex; gap: 9px; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c); border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.2s;
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c); }
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 3px;
  background: var(--surface-3); outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.upload-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 520; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 14px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.upload-btn:hover { background: var(--surface-3); color: var(--text); }

.theme-preview { position: relative; height: 460px; overflow: hidden; transition: background 0.4s; }
.tp-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.4s; }
.tp-overlay { position: absolute; inset: 0; transition: background 0.4s; }
/* Live, theme-able mock of the Juttr dashboard (driven by CSS vars set in main.js) */
.tp-ui {
  position: absolute; inset: 0; display: flex;
  color: var(--tp-text, #f1f3f6);
}
.tp-side {
  width: 170px; flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 12px;
  background: var(--tp-side-bg, rgba(14, 16, 22, 0.78));
  backdrop-filter: blur(var(--tp-blur, 14px));
  -webkit-backdrop-filter: blur(var(--tp-blur, 14px));
  border-right: 1px solid var(--tp-border, rgba(255, 255, 255, 0.08));
  transition: background 0.35s, border-color 0.35s;
}
.tp-brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 14px; }
.tp-brand-mark {
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--tp-accent, #2dd4bf);
  box-shadow: 0 5px 14px -3px var(--tp-accent-soft, rgba(45, 212, 191, 0.5));
  transition: background 0.3s, box-shadow 0.3s;
}
.tp-brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.tp-nav { display: flex; flex-direction: column; gap: 2px; }
.tp-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 9px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  color: var(--tp-dim, rgba(241, 243, 246, 0.62));
  transition: color 0.3s, background 0.3s;
}
.tp-nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; }
.tp-nav-item.active {
  color: var(--tp-accent, #2dd4bf);
  background: var(--tp-accent-soft, rgba(45, 212, 191, 0.14));
  font-weight: 600;
}
.tp-nav-foot { margin-top: auto; }

.tp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.tp-search {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius);
  background: var(--tp-card-bg, rgba(22, 25, 33, 0.78));
  backdrop-filter: blur(var(--tp-blur, 14px));
  -webkit-backdrop-filter: blur(var(--tp-blur, 14px));
  border: 1px solid var(--tp-border, rgba(255, 255, 255, 0.08));
  color: var(--tp-faint, rgba(241, 243, 246, 0.4));
  transition: background 0.35s, border-color 0.35s;
}
.tp-search svg { width: 16px; height: 16px; flex: 0 0 auto; }
.tp-search-text { flex: 1; font-size: 13px; }
.tp-kbd { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--tp-border, rgba(255, 255, 255, 0.14)); }

.tp-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tp-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 16px; border-radius: var(--radius-lg);
  background: var(--tp-card-bg, rgba(22, 25, 33, 0.78));
  backdrop-filter: blur(var(--tp-blur, 14px));
  -webkit-backdrop-filter: blur(var(--tp-blur, 14px));
  border: 1px solid var(--tp-border, rgba(255, 255, 255, 0.08));
  transition: background 0.35s, border-color 0.35s;
}
.tp-w-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--tp-dim, rgba(241, 243, 246, 0.62));
  margin-bottom: 14px;
}
.tp-w-head svg { width: 14px; height: 14px; color: var(--tp-accent, #2dd4bf); transition: color 0.3s; }

/* Focus card */
.tp-seg { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--tp-inset, rgba(255, 255, 255, 0.06)); }
.tp-seg-btn { flex: 1; text-align: center; font-size: 11px; font-weight: 600; padding: 5px 0; border-radius: 999px; color: var(--tp-dim, rgba(241, 243, 246, 0.55)); transition: background 0.3s, color 0.3s; }
.tp-seg-btn.active { background: var(--tp-accent, #2dd4bf); color: var(--tp-on-accent, #04201c); }
.tp-timer { display: block; text-align: center; font-family: var(--mono); font-size: 38px; font-weight: 600; letter-spacing: -0.04em; margin: 16px 0 14px; color: var(--tp-text, #f1f3f6); }
.tp-play {
  align-self: center; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--tp-accent, #2dd4bf); color: var(--tp-on-accent, #04201c);
  box-shadow: 0 6px 16px -4px var(--tp-accent-soft, rgba(45, 212, 191, 0.5));
  transition: background 0.3s, box-shadow 0.3s;
}
.tp-play svg { width: 16px; height: 16px; margin-left: 2px; }

/* Tasks card */
.tp-count { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-accent, #2dd4bf); margin-bottom: 11px; transition: color 0.3s; }
.tp-task { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--tp-inset, rgba(255, 255, 255, 0.05)); margin-bottom: 8px; }
.tp-task-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: var(--tp-accent, #2dd4bf); transition: background 0.3s; }
.tp-task-body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.tp-task-body b { font-size: 12px; font-weight: 600; color: var(--tp-text, #f1f3f6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-task-body i { font-style: normal; font-size: 10.5px; color: var(--tp-faint, rgba(241, 243, 246, 0.45)); }
.tp-add { margin-top: auto; font-size: 11.5px; font-weight: 600; color: var(--tp-faint, rgba(241, 243, 246, 0.5)); padding: 9px 10px; border-radius: 10px; border: 1px dashed var(--tp-border, rgba(255, 255, 255, 0.16)); }

/* Calendar card */
.tp-month { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; color: var(--tp-text, #f1f3f6); }
.tp-week, .tp-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.tp-week span { font-size: 9px; font-weight: 600; color: var(--tp-faint, rgba(241, 243, 246, 0.4)); padding-bottom: 6px; }
.tp-days span { font-size: 11px; padding: 5px 0; color: var(--tp-dim, rgba(241, 243, 246, 0.65)); }
.tp-days .today { color: var(--tp-on-accent, #04201c); background: var(--tp-accent, #2dd4bf); border-radius: 7px; font-weight: 700; transition: background 0.3s, color 0.3s; }

@media (max-width: 760px) {
  .tp-grid { grid-template-columns: 1fr 1fr; }
  .tp-cal { display: none; }
}
@media (max-width: 560px) {
  .tp-side { width: 54px; padding: 14px 7px; }
  .tp-brand { justify-content: center; padding: 4px 0 12px; }
  .tp-brand-name, .tp-nav-item span { display: none; }
  .tp-nav-item { justify-content: center; padding: 9px 0; }
  .tp-grid { grid-template-columns: 1fr; }
  .tp-grid .tp-card:not(:first-child) { display: none; }
}

/* ─────────────── Handbook ─────────────── */
.handbook { background: var(--bg-2); }
.handbook-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 80px; align-items: center; }
.hb-list { list-style: none; margin: 28px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.hb-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-dim); }
.hb-list li::before {
  content: ''; flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--teal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.hb-art { display: flex; justify-content: center; }
.hb-book { position: relative; width: 300px; transform: rotate(-3deg); transition: transform 0.4s var(--ease); }
.hb-book:hover { transform: rotate(-1deg) translateY(-6px); }
.hb-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; border-radius: var(--radius) 0 0 var(--radius); background: linear-gradient(180deg, var(--teal-bright), #0f9b8a); }
.hb-cover {
  margin-left: 8px;
  aspect-ratio: 3 / 4;
  border-radius: 6px var(--radius-lg) var(--radius-lg) 6px;
  background: linear-gradient(160deg, #0f1117 0%, #161a24 55%, #0d2b27 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 24px 30px 70px -24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 34px 30px;
  display: flex; flex-direction: column;
}
.hb-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin-bottom: 30px; }
.hb-dot { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(140deg, var(--teal-bright), var(--teal)); box-shadow: 0 4px 12px rgba(45, 212, 191, 0.4); }
.hb-kicker { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.hb-cover h3 { font-size: 25px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.hb-cover h3 em { font-style: normal; color: var(--teal); }
.hb-meta { margin-top: auto; font-size: 11.5px; color: var(--text-faint); }

/* ─────────────── Privacy ─────────────── */
.privacy-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: 80px; align-items: center; }
.check-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 13px; }
.check-list.tight { margin-top: 22px; gap: 11px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-dim); }
.check-list li::before {
  content: ''; flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.privacy-badge {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  background: var(--teal-soft); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.privacy-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.privacy-card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }
.privacy-card code {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--teal-bright); background: var(--teal-soft);
  padding: 2px 7px; border-radius: 6px;
}

/* ─────────────── CTA ─────────────── */
.cta { position: relative; text-align: center; padding: 150px 28px; border-top: 1px solid var(--border); }
.cta-glow {
  position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
  width: min(900px, 100%); height: 600px;
  background: radial-gradient(ellipse at 50% 100%, rgba(45, 212, 191, 0.16), transparent 60%);
  pointer-events: none;
}
.cta-title { font-size: clamp(36px, 5.5vw, 68px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; position: relative; }
.cta-sub { font-size: 18px; color: var(--text-dim); margin: 18px 0 0; position: relative; }
.cta .hero-actions { position: relative; }

/* ─────────────── Footer ─────────────── */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding: 28px;
  max-width: var(--maxw); margin: 0 auto;
  border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-faint);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 5px; opacity: 0.7; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--text-faint); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

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

/* ─────────────── Responsive ─────────────── */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .speed-grid, .handbook-grid, .privacy-grid { grid-template-columns: 1fr; gap: 48px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .b-focus { grid-column: span 2; grid-row: span 1; }
  .b-boards, .b-notes { grid-column: span 1; }
  .b-analytics, .b-calendar, .b-stat { grid-column: span 2; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 120px; }
  .section { padding: 90px 0; }
  .speed-stats { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .b-focus, .b-analytics, .b-calendar, .b-boards, .b-notes, .b-stat { grid-column: span 1; }
  .theme-controls { gap: 18px; }
  .footer { flex-direction: column; text-align: center; }
  .hb-book { width: 240px; }
}

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

/* ─────────────── Lead-capture modal ─────────────── */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.lead-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
body.lead-open { overflow: hidden; }

.lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lead-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, #14171f, #0e1016);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 40px 90px -30px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 34px 32px 30px;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.lead-modal.is-open .lead-card { transform: none; }

.lead-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.lead-close:hover { color: var(--text); background: var(--surface-3); border-color: var(--border-strong); }

.lead-logo { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.lead-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(140deg, var(--teal-bright), var(--teal));
  box-shadow: 0 5px 14px -3px rgba(45, 212, 191, 0.5);
}
.lead-title { font-size: 23px; font-weight: 600; letter-spacing: -0.025em; margin-top: 20px; }
.lead-sub { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin-top: 9px; }

.lead-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.lead-field { display: flex; flex-direction: column; gap: 7px; }
.lead-field span {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint);
}
.lead-field input {
  font-family: var(--sans); font-size: 15px; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.lead-field input::placeholder { color: var(--text-faint); }
.lead-field input:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.22);
  background: var(--surface-3);
}
.lead-field input.invalid { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18); }

/* Honeypot — off-screen, never shown to humans */
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-dim); line-height: 1.45;
  cursor: pointer; user-select: none;
  margin-top: 2px;
}
.lead-check input {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 1px;
  accent-color: var(--teal);
  cursor: pointer;
}

.lead-error { font-size: 13px; color: #ff8585; min-height: 0; }
.lead-error:empty { display: none; }

.lead-submit { width: 100%; margin-top: 4px; }
.lead-submit:disabled { opacity: 0.6; cursor: progress; transform: none; }

.lead-skip { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.lead-skip a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.lead-skip a:hover { color: var(--teal-bright); }

@media (max-width: 620px) {
  .lead-modal { padding: 14px; align-items: flex-end; }
  .lead-card { padding: 28px 22px 24px; border-radius: var(--radius-lg); }
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal, .lead-card { transition: none; }
  .lead-modal.is-open .lead-card { transform: none; }
}
