/* ─────────────────────────────────────────────────────────────
   DLog landing — mirrors the app's own design tokens.
   Minimal, professional, theme-aware (light + dark).
   ───────────────────────────────────────────────────────────── */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --radius-card: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;

  /* Light theme — matches app --c-* tokens */
  --surface-0: #ffffff;
  --surface-1: #f7f7f9;
  --surface-2: #f1f1f4;
  --surface-3: #e7e7ec;
  --border: #e2e2e8;
  --border-strong: #cdcdd6;
  --text: #17171a;
  --text-muted: #5c5c67;
  --text-faint: #8a8a95;
  --accent: #6d4bf6;
  --accent-hover: #5c39ef;
  --accent-soft: #eeeaff;
  --running: #16a34a;
  --running-soft: #e6f7ec;
  --shadow: 0 1px 2px rgba(23, 23, 26, 0.04), 0 12px 40px rgba(23, 23, 26, 0.08);
}

:root.dark {
  --surface-0: #121215;
  --surface-1: #17171b;
  --surface-2: #1e1e24;
  --surface-3: #26262e;
  --border: #2a2a32;
  --border-strong: #3a3a45;
  --text: #ededf0;
  --text-muted: #a3a3ad;
  --text-faint: #71717d;
  --accent: #8b6dff;
  --accent-hover: #9d84ff;
  --accent-soft: #211b3d;
  --running: #34d17f;
  --running-soft: #16281d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--surface-1);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* ─── Fancy backdrop ─────────────────────────────────────────
   Fixed, behind everything: a fine grid texture + two soft
   accent glows. Pure CSS, CSP-safe, theme-aware. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 35%, transparent 78%);
  opacity: 0.7;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 45% at 78% 8%,  var(--glow-b) 0%, transparent 60%),
    radial-gradient(55% 50% at 12% 2%,  var(--glow-a) 0%, transparent 55%),
    radial-gradient(90% 60% at 50% -10%, var(--glow-a) 0%, transparent 65%);
  pointer-events: none;
}

:root {
  --grid-line: rgba(23, 23, 26, 0.045);
  --glow-a: rgba(109, 75, 246, 0.10);
  --glow-b: rgba(109, 75, 246, 0.07);
}
:root.dark {
  --grid-line: rgba(255, 255, 255, 0.035);
  --glow-a: rgba(139, 109, 255, 0.16);
  --glow-b: rgba(90, 120, 255, 0.12);
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

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

/* ─── Brand logo (the real app icon) ─────────────────────── */
.brand-logo {
  border-radius: 8px;
  flex: none;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface-1) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }

.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.header-nav a:hover { color: var(--text); }
.muted-link { color: var(--text-faint) !important; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-0);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.icon-moon { display: none; }
:root.dark .icon-sun { display: none; }
:root.dark .icon-moon { display: block; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(109, 75, 246, 0.25), 0 8px 24px rgba(109, 75, 246, 0.28);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 720;
  margin: 0 0 22px;
}
.lede {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 30rem;
  margin: 0 0 30px;
}
.lede em { color: var(--text); font-style: italic; }

.hero-cta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.version-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-0);
}
.hero-fine { font-size: 0.85rem; color: var(--text-faint); margin: 0; }

/* ─── App window mock (shared by hero + showcase) ────────── */
.hero-shot { display: flex; justify-content: center; position: relative; }
.hero-shot::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--glow-a), transparent 72%);
  filter: blur(20px);
}

.app-window {
  width: 100%;
  max-width: 520px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app-window.flat { max-width: 640px; }

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.app-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.app-title { margin-left: 8px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

/* Two-column shell: sidebar + main */
.app-shell { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; }

.app-sidebar {
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.side-id { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 2px; }
.side-avatar-img {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.side-who strong { display: block; font-size: 0.78rem; line-height: 1.1; }
.side-who small { color: var(--text-faint); font-size: 0.66rem; }
.side-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  cursor: default;
}
.side-item .si-ic { font-size: 0.9rem; width: 16px; text-align: center; filter: grayscale(0.2); }
.side-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Main pane */
.app-main { display: flex; flex-direction: column; min-width: 0; }
.pane-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.date-pill, .range-pill {
  font-size: 0.76rem; font-weight: 600; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 8px; letter-spacing: 0.01em;
}
.dash-title { font-size: 0.9rem; font-weight: 700; }
.total-inline { font-size: 0.8rem; color: var(--text-muted); }
.total-inline strong { margin-left: 4px; }
.t-run { color: var(--running); }

.pane-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.task-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface-1);
}
.task-row.running {
  border-color: color-mix(in srgb, var(--running) 45%, var(--border));
  background: var(--running-soft);
}
.task-row .play {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--surface-3);
  flex: none;
}
.task-row.running .play { color: #fff; background: var(--running); }
.task-meta { flex: 1; min-width: 0; }
.task-meta strong { display: block; font-size: 0.88rem; font-weight: 600; }
.task-meta small { color: var(--text-faint); font-size: 0.72rem; }
.task-time { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.task-row.running .task-time { color: var(--running); }

.pane-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.ghost-btn {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border);
}
.pill {
  font-size: 0.78rem; font-weight: 600; color: #fff;
  background: var(--accent);
  padding: 7px 13px; border-radius: 8px;
}

/* ─── Dashboard mock internals ───────────────────────────── */
.dash-body { gap: 12px; overflow: hidden; }
.dash-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 13px 14px;
}
.dash-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.dash-card-head strong { font-size: 0.82rem; }
.dash-card-head small { color: var(--text-faint); font-size: 0.72rem; }

.chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 92px;
}
.chart-target {
  position: absolute; left: 0; right: 0; top: 30%;
  border-top: 1px dashed var(--border-strong);
}
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar {
  width: 62%;
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: var(--accent);
  opacity: 0.85;
}
.bar.today { background: var(--accent); opacity: 1; box-shadow: 0 0 0 2px var(--accent-soft); }
.bar.dim { background: var(--border-strong); opacity: 0.7; }
.bar-col small { font-size: 0.66rem; color: var(--text-faint); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 11px;
}
.stat.accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--accent-soft); }
.stat small { display: block; font-size: 0.66rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.stat strong { display: block; font-size: 1rem; font-weight: 700; margin: 3px 0 2px; }
.stat.accent strong { color: var(--accent); }
.stat span { font-size: 0.68rem; color: var(--text-muted); }

.breakdown { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.breakdown li { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px; }
.bd-label { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--text-muted); }
.bd-label i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.bd-bar { height: 7px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.bd-bar b { display: block; height: 100%; border-radius: 4px; }
.bd-val { font-size: 0.76rem; color: var(--text); font-weight: 600; }

/* ─── Showcase section ───────────────────────────────────── */
.showcase { padding-block: clamp(56px, 8vw, 88px); }
.show-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.show-row.reverse { grid-template-columns: 1.15fr 0.85fr; }
.show-row.reverse .show-copy { order: 2; }
.show-row.reverse .show-visual { order: 1; }
.show-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 11px; border-radius: 999px;
  margin-bottom: 14px;
}
.show-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; font-weight: 700; margin: 0 0 12px; }
.show-copy p { color: var(--text-muted); font-size: 1rem; margin: 0; max-width: 30rem; }
.show-visual { display: flex; justify-content: center; }
.show-visual .app-window { box-shadow: var(--shadow); }

/* ─── Section shared ─────────────────────────────────────── */
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}
.section-head p { color: var(--text-muted); font-size: 1.02rem; margin: 0; }

.features, .download { padding-block: clamp(56px, 8vw, 88px); }

/* ─── Features ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: color-mix(in srgb, var(--surface-0) 82%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  background: var(--accent-soft);
  border-radius: 11px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.05rem; font-weight: 650; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }
kbd {
  font-family: var(--font-mono);
  font-size: 0.8em;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
}

/* ─── Download ───────────────────────────────────────────── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 980px;
  margin-inline: auto;
}
.dl-card {
  position: relative;
  background: color-mix(in srgb, var(--surface-0) 85%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.dl-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.dl-card[data-suggested="true"] {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow);
}
.dl-card[data-suggested="true"]::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.dl-top { display: flex; flex-direction: column; align-items: center; flex: 1; }
/* Real brand logos: full-colour inline SVGs. */
.dl-glyph {
  height: 40px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
}
.dl-glyph svg { display: block; }
/* Apple's mark is monochrome by brand — key it to the theme text colour. */
.apple-mark { color: var(--text); }
.dl-os { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.dl-note { color: var(--text-faint); font-size: 0.83rem; margin: 6px 0 22px; }

.dl-link { width: 100%; margin-bottom: 16px; }

/* Platforms not yet uploaded: soften the card and disable its button. */
.dl-card[data-unavailable="true"] { opacity: 0.62; }
.dl-card[data-unavailable="true"] .dl-glyph { filter: grayscale(1); opacity: 0.7; }
a.dl-link[aria-disabled="true"],
a.dl-alt[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
  opacity: 0.5;
  filter: grayscale(0.6);
}
.dl-card[data-unavailable="true"] .dl-link::after { content: " — coming soon"; font-weight: 500; }

.dl-alts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 20px;
}
.dl-alts-label { font-size: 0.78rem; color: var(--text-faint); }
.dl-alt {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.dl-alt:hover { color: var(--accent); border-color: var(--accent); }

.dl-hint {
  max-width: 46rem;
  margin: 36px auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-faint);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 20px;
}
.dl-hint strong { color: var(--text-muted); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-0);
  padding-block: 40px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-size: 0.95rem; }
.footer-brand small { color: var(--text-faint); font-size: 0.8rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-faint); font-size: 0.82rem; margin: 0; }

/* ─── Enterprise / customization section ─────────────────── */
.enterprise { padding-block: clamp(40px, 7vw, 80px); }
.ent-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 22px;
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--surface-0);
  box-shadow: var(--shadow);
}
.ent-card::after {
  /* soft rotating conic sheen in the corner */
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent, var(--glow-a), transparent 40%);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.8;
  animation: spin 18s linear infinite;
  pointer-events: none;
}
.ent-copy { position: relative; max-width: 720px; }
.enterprise h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.025em;
  font-weight: 720;
  margin: 16px 0 14px;
}
.enterprise h2 em { color: var(--accent); font-style: italic; }
.ent-lede { color: var(--text-muted); font-size: 1.05rem; max-width: 40rem; margin: 0 0 30px; }

.ent-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}
.ent-list li { display: flex; gap: 13px; align-items: flex-start; }
.ent-ic {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 1.15rem;
  background: var(--accent-soft);
  border-radius: 11px;
}
.ent-list strong { display: block; font-size: 0.98rem; font-weight: 650; margin-bottom: 2px; }
.ent-list small { color: var(--text-muted); font-size: 0.86rem; line-height: 1.45; }

.ent-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ent-cta .btn-primary { padding: 13px 26px; font-size: 1rem; }
.ent-mail {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border-strong);
  transition: color 0.15s, border-color 0.15s;
}
.ent-mail:hover { color: var(--accent); border-color: var(--accent); }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

/* Running-task dot pulse in the app mocks */
.task-row.running .play {
  animation: pulse-run 2.4s var(--ease) infinite;
}
@keyframes pulse-run {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--running) 55%, transparent); }
  50%      { box-shadow: 0 0 0 5px color-mix(in srgb, var(--running) 0%, transparent); }
}

/* Gentle float on the hero glow */
.hero-shot::before { animation: float-glow 9s ease-in-out infinite; }
@keyframes float-glow {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50%      { transform: translateY(-14px) scale(1.04); opacity: 1; }
}

/* Hero entrance — staggered fade-up on load */
.hero-copy > * { animation: fade-up 0.7s var(--ease) both; }
.hero-copy .eyebrow   { animation-delay: 0.02s; }
.hero-copy h1         { animation-delay: 0.08s; }
.hero-copy .lede      { animation-delay: 0.16s; }
.hero-copy .hero-cta  { animation-delay: 0.24s; }
.hero-copy .hero-fine { animation-delay: 0.32s; }
.hero-shot { animation: fade-in 1s var(--ease) 0.2s both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Scroll-reveal — JS toggles .is-visible when the element enters view */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* Stagger children of a revealed grid/list */
.reveal[data-stagger].is-visible > * {
  animation: fade-up 0.6s var(--ease) both;
}
.reveal[data-stagger].is-visible > *:nth-child(2) { animation-delay: 0.06s; }
.reveal[data-stagger].is-visible > *:nth-child(3) { animation-delay: 0.12s; }
.reveal[data-stagger].is-visible > *:nth-child(4) { animation-delay: 0.18s; }
.reveal[data-stagger].is-visible > *:nth-child(5) { animation-delay: 0.24s; }
.reveal[data-stagger].is-visible > *:nth-child(6) { animation-delay: 0.30s; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 880px) {
  .ent-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-nav { gap: 14px; }
  .header-nav a:not(.muted-link) { display: none; }
  .muted-link { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

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