/* Nonlate marketing site
   Palette: ink on cream, with signature indigo accent.
   Font stack: system, with Plus Jakarta Sans via Google Fonts. */

:root {
  --ink: #0b0b0e;
  --ink-2: #1a1a20;
  --ink-3: #2a2a33;
  --muted: #6b6b78;
  --line: #1f1f27;
  --cream: #f4efe6;
  --cream-2: #ece6d9;
  --paper: #faf7f1;
  --accent: #2111d4;
  --accent-2: #4a38ff;
  --lime: #d9ff4a;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.3) blur(12px);
  background: rgba(244, 239, 230, 0.78);
  border-bottom: 1px solid rgba(11,11,14,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cream);
  font-weight: 800;
  font-size: 14px;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px; color: var(--ink-2);
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
}
.nav-cta:hover { background: var(--accent); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(33,17,212,0.12), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(33,17,212,0.15);
}
h1.display {
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 22px 0 20px;
  max-width: 14ch;
}
h1.display em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 32px;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(11,11,14,0.15);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

.hero-meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 13px; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .tick { color: var(--accent); font-weight: 700; }

/* Hero phone mock */
.hero-visual {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.panel {
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(11,11,14,0.06);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.panel.dark {
  background: var(--ink);
  color: var(--cream);
  border-color: transparent;
}
.panel-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.panel.dark .panel-label { color: rgba(244,239,230,0.5); }

.intercept-demo {
  margin-top: 14px;
}
.intercept-app {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(244,239,230,0.06);
  border: 1px solid rgba(244,239,230,0.08);
}
.intercept-app strong { font-weight: 700; }
.intercept-big {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 10px;
}
.intercept-sub {
  color: rgba(244,239,230,0.7);
  font-size: 14px;
  margin-bottom: 20px;
}
.intercept-task {
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.intercept-task .t-title { font-weight: 700; }
.intercept-task .t-sub { font-size: 12px; opacity: 0.85; }
.intercept-actions {
  margin-top: 14px;
  display: flex; gap: 8px;
}
.pill {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(244,239,230,0.2);
  color: var(--cream);
}
.pill.primary {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.list-demo { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.task-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11,11,14,0.06);
}
.task-row .meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.task-row .src-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.task-row .src-ico {
  width: 20px; height: 20px; display: inline-block; flex-shrink: 0;
  object-fit: contain;
}
.task-row.urgent { background: #fff1ed; border-color: #ffdacd; }
.task-row.urgent .src-dot { background: #ff5a36; }
.task-row .due {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11,11,14,0.06);
  color: var(--ink-2);
}
.task-row.urgent .due { background: #ff5a36; color: #fff; }

@media (max-width: 860px) {
  .hero-visual { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 48px; }
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  border-top: 1px solid rgba(11,11,14,0.08);
}
.section.dark {
  background: var(--ink);
  color: var(--cream);
  border-top: none;
}
.section.paper { background: var(--paper); }
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.section.dark .section-eyebrow { color: rgba(244,239,230,0.55); }
.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 14px 0 16px;
}
.section-lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
}
.section.dark .section-lede { color: rgba(244,239,230,0.75); }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(11,11,14,0.06);
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.step-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cream-2);
}
.step-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 18px 0 8px;
}
.step-body { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feature {
  grid-column: span 6;
  background: var(--paper);
  border: 1px solid rgba(11,11,14,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex; flex-direction: column; gap: 12px;
}
.feature.wide { grid-column: span 12; }
.feature.tall { grid-column: span 4; }
.feature .f-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature .f-body { color: var(--ink-2); font-size: 15px; }
.feature .f-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature.accent {
  background: var(--ink);
  color: var(--cream);
  border-color: transparent;
}
.feature.accent .f-body { color: rgba(244,239,230,0.7); }
.feature.accent .f-icon {
  background: var(--accent); color: #fff;
}

@media (max-width: 860px) {
  .feature, .feature.wide, .feature.tall { grid-column: span 12; }
}

/* ---------- Reminder vs blocker ---------- */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.vs-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.vs-card.neg {
  background: #fff;
  color: var(--muted);
  border: 1px solid rgba(11,11,14,0.08);
}
.vs-card.pos {
  background: var(--ink);
  color: var(--cream);
}
.vs-card .vs-label {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.vs-card.neg .vs-label { color: #a0a0ad; }
.vs-card.pos .vs-label { color: var(--accent); }
.vs-card h3 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 10px;
  color: var(--ink);
}
.vs-card.pos h3 { color: var(--cream); }
.vs-card p { margin: 0; font-size: 15px; }
.vs-bullets { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.vs-bullets li::before { content: "—  "; opacity: 0.6; }
@media (max-width: 860px) {
  .vs { grid-template-columns: 1fr; }
}

/* ---------- Integrations ---------- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.int-tile {
  background: var(--paper);
  border: 1px solid rgba(11,11,14,0.06);
  border-radius: 16px;
  padding: 22px 14px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  min-height: 112px;
  justify-content: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.int-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(11,11,14,0.12);
  box-shadow: 0 8px 24px rgba(11,11,14,0.06);
}
.int-logo {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.int-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.int-name {
  line-height: 1.25;
}
.int-tile.int-more .int-logo {
  background: transparent;
  border: 1.5px dashed rgba(11,11,14,0.22);
  border-radius: 12px;
  color: var(--ink-2);
}
.int-tile.int-more .int-logo svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Trust ---------- */
.trust {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.trust-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.trust-points li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; color: rgba(244,239,230,0.82);
}
.trust-points li b { color: var(--cream); font-weight: 700; }
.trust-points .badge {
  flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.trust-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 13px;
  color: rgba(244,239,230,0.8);
  line-height: 1.7;
  white-space: pre-wrap;
}
.trust-card .k { color: #aab3ff; }
.trust-card .v { color: var(--lime); }
.trust-card .c { color: rgba(244,239,230,0.45); }
@media (max-width: 860px) {
  .trust { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.cta-band {
  padding: 120px 0;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(33,17,212,0.18), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(33,17,212,0.12), transparent 55%),
    var(--cream);
}
.cta-band h2 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 auto 18px;
  max-width: 18ch;
}
.cta-band p {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 52ch;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(244,239,230,0.7);
  padding: 64px 0 40px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244,239,230,0.1);
}
.foot-brand { max-width: 34ch; }
.foot-brand .brand-mark { background: var(--cream); color: var(--ink); }
.foot-brand .brand { color: var(--cream); font-size: 22px; margin-bottom: 14px; }
.foot-col h4 {
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.foot-col a { display: block; padding: 4px 0; }
.foot-col a:hover { color: var(--cream); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  padding-top: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(244,239,230,0.5);
}
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal & motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal.from-left  { transform: translate(-24px, 18px); }
.reveal.from-right { transform: translate( 24px, 18px); }
.reveal.from-left.visible,
.reveal.from-right.visible { transform: translate(0, 0); }

/* Nav — frosted bg + shrink once user scrolls */
.nav { transition: background-color 200ms ease, box-shadow 200ms ease; }
.nav.scrolled {
  background: rgba(244, 239, 230, 0.82);
  box-shadow: 0 1px 0 rgba(11,11,14,0.06), 0 8px 24px rgba(11,11,14,0.05);
}
.nav-inner { transition: height 220ms ease; }
.nav.scrolled .nav-inner { height: 56px; }

/* Button arrow slides on hover */
.btn-primary svg { transition: transform 200ms ease; }
.btn-primary:hover svg { transform: translateX(4px); }

/* Integration tile icon bloom on hover */
.int-tile .int-logo { transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease; }
.int-tile:hover .int-logo {
  transform: scale(1.08) translateY(-1px);
  box-shadow: 0 6px 16px rgba(11,11,14,0.08);
}

/* One-time pulse on the urgent task when it becomes visible */
@keyframes urgent-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.38); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 90, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); }
}
.task-row.urgent.visible { animation: urgent-pulse 1400ms ease-out 320ms 1; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.from-left,
  .reveal.from-right,
  .nav,
  .nav-inner,
  .btn-primary svg,
  .int-tile .int-logo {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .reveal { opacity: 1; }
}

::selection { background: var(--accent); color: #fff; }
