/* ================= Daily Tracker landing ================= */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #10162a;
  --muted: #667085;
  --line: #e7eaf3;
  --brand: #3b6df6;
  --brand-end: #7c4dff;
  --safe: #16a56a;
  --warning: #e79b0d;
  --urgent: #e8506a;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 22, 42, 0.05), 0 4px 14px rgba(16, 22, 42, 0.05);
  --shadow-lg: 0 8px 24px rgba(16, 22, 42, 0.08), 0 28px 64px rgba(16, 22, 42, 0.1);
  --grad: linear-gradient(120deg, var(--brand), var(--brand-end));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 800; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.lede { font-size: 1.13rem; color: var(--muted); max-width: 34rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(59, 109, 246, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(59, 109, 246, 0.45); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-light { background: #fff; color: var(--brand); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 14px 24px;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 150px 24px 70px;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
.blob-a {
  width: 520px; height: 520px;
  top: -160px; right: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(124, 77, 255, 0.35), transparent 65%);
}
.blob-b {
  width: 620px; height: 620px;
  bottom: -260px; left: -180px;
  background: radial-gradient(circle at 60% 40%, rgba(59, 109, 246, 0.3), transparent 65%);
  animation-delay: -8s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-copy .lede { margin-top: 20px; }
.hero-chips {
  display: flex;
  gap: 10px;
  list-style: none;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-chips li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

/* ---------- phone frame ---------- */
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.phone-wrap { position: relative; }
.phone {
  width: min(310px, 78vw);
  aspect-ratio: 1080 / 2438;
  border-radius: 46px;
  background: #0d1220;
  padding: 11px;
  box-shadow:
    inset 0 0 0 2px #2a3040,
    var(--shadow-lg);
  position: relative;
  transition: transform 0.4s ease;
}
.phone video, .phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  background: var(--bg);
}
.phone-island {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 24px;
  border-radius: 999px;
  background: #0d1220;
  z-index: 2;
}
.visual-caption {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* floating chips */
.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  animation: floaty 5s ease-in-out infinite;
}
.chip-mot { top: 9%; left: -78px; }
.chip-passport { top: 46%; right: -70px; animation-delay: -1.7s; }
.chip-cost { bottom: 12%; left: -92px; animation-delay: -3.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-urgent { background: var(--urgent); }
.dot-safe { background: var(--safe); }
.dot-brand { background: var(--brand); }

/* ---------- stats ---------- */
.stats { padding: 26px 24px 10px; }
.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.88rem; font-weight: 600; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 96px 24px; max-width: 1160px; margin: 0 auto; }
.section-alt {
  max-width: none;
  background: linear-gradient(180deg, var(--bg), #eef1fb 50%, var(--bg));
}
.section-alt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 54px; }

/* ---------- feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.1), box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 12%, white);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* ---------- showcase ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  padding: 0 24px 10px;
}
.shot { text-align: center; }
.shot-frame {
  border-radius: 30px;
  background: #0d1220;
  padding: 7px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}
.shot-frame img { border-radius: 24px; }
.shot:hover .shot-frame { transform: translateY(-8px) scale(1.02); }
.shot figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.shot figcaption strong { display: block; color: var(--ink); font-weight: 800; }

/* ---------- split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.shot-lg { max-width: 360px; margin: 0 auto; border-radius: 40px; padding: 10px; }
.shot-lg img { border-radius: 32px; }

/* PDF report mockup: front page with page 2 peeking behind */
.paper-stack {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  padding: 26px 10px;
}
.paper {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.paper-front {
  position: relative;
  z-index: 2;
  transform: rotate(-2.5deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}
.paper-back {
  position: absolute;
  top: 6px;
  right: -14px;
  width: 78%;
  transform: rotate(4deg);
  opacity: 0.92;
}
.paper-stack:hover .paper-front { transform: rotate(0deg) scale(1.02); }
.paper-chip {
  position: absolute;
  z-index: 3;
  left: -6px;
  bottom: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(59, 109, 246, 0.35);
}
.check-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 14px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 14px no-repeat;
  mask-composite: exclude;
}

/* ---------- demo ---------- */
.demo-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
  justify-content: center;
  max-width: 980px;
  padding: 0 24px;
}
.phone-demo .phone { width: min(330px, 80vw); }
.chapters { display: grid; gap: 10px; max-width: 430px; }
.chapters-hint {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.chapter {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.chapter:hover { transform: translateX(6px); }
.chapter.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 109, 246, 0.15), var(--shadow-sm);
}
.chapter-time {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  background: var(--grad);
  border-radius: 8px;
  padding: 3px 8px;
  margin-top: 2px;
}
.chapter span:last-child { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.chapter strong { display: block; color: var(--ink); font-size: 0.97rem; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}
.step p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* ---------- CTA ---------- */
.cta { padding: 40px 24px 100px; }
.cta-inner {
  max-width: 1160px;
  margin: 0 auto;
  background: var(--grad);
  border-radius: 34px;
  padding: 72px 40px;
  text-align: center;
  color: #fff;
  box-shadow: 0 24px 60px rgba(88, 92, 246, 0.35);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 44px solid rgba(255, 255, 255, 0.12);
}
.cta-inner p { max-width: 34rem; margin: 14px auto 0; opacity: 0.9; }
.cta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.cta-form input {
  font: inherit;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  outline: none;
  min-width: min(340px, 80vw);
}
.cta-note { font-size: 0.85rem; margin-top: 20px; opacity: 0.85; }

/* ---------- footer ---------- */
.footer { padding: 50px 24px 60px; }
.footer-inner { max-width: 1160px; margin: 0 auto; text-align: center; color: var(--muted); }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-fine { font-size: 0.82rem; margin-top: 18px; }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

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

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-chips { justify-content: center; }
  .hero-visual { margin-top: 26px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .split .check-list { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
  .demo-layout { grid-template-columns: 1fr; justify-items: center; }
  .showcase {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
  }
  .shot { flex: 0 0 218px; scroll-snap-align: center; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 26px 10px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .section { padding: 70px 20px; }
  .nav { padding: 10px 16px; }
  .nav-inner { gap: 12px; justify-content: space-between; }
  .brand span { font-size: 0.95rem; }
  .btn-sm { padding: 9px 16px; font-size: 0.84rem; }
  .hero { padding-top: 120px; }
}
