/* TaskBuddy marketing site. Palette mirrors frontend/tailwind.config.ts so the landing page and
   the app look like one product. Self-contained: no external fonts, scripts, or images. */

:root {
  --brand-400: #38bdf8;
  --brand-500: #0ea5e9;
  --brand-600: #0284c7;
  --brand-700: #0369a1;
  --success-500: #22c55e;
  --warning-500: #f59e0b;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 6%);

  --max: 68rem;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #0f172a;
    --surface: #111c30;
    --border: #1e293b;
    --text: #e8eef7;
    --text-muted: #9fb0c6;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1rem; color: var(--text-muted); }

a { color: var(--brand-600); }
@media (prefers-color-scheme: dark) { a { color: var(--brand-400); } }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  display: grid; place-items: center; color: #fff; font-size: 17px;
}
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 0.7rem 1.15rem; border-radius: 10px;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand-500); }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.05rem; }

/* ---------- sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem;
  font-weight: 700; color: var(--brand-600); margin-bottom: 0.6rem;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--brand-400); } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(3rem, 8vw, 6rem); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-note { font-size: 0.9rem; margin-top: 1rem; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-size: 19px; margin-bottom: 0.85rem;
  background: color-mix(in srgb, var(--brand-500) 14%, transparent);
}
.card-icon.is-success { background: color-mix(in srgb, var(--success-500) 16%, transparent); }
.card-icon.is-warning { background: color-mix(in srgb, var(--warning-500) 18%, transparent); }

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.25rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem;
  background: var(--brand-600); color: #fff;
}

/* ---------- cta ---------- */
.cta-panel {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  border-radius: 18px; padding: clamp(2rem, 5vw, 3.25rem); text-align: center; color: #fff;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgb(255 255 255 / 88%); max-width: 34rem; margin-inline: auto; }
.cta-panel .btn-primary { background: #fff; color: var(--brand-700); }
.cta-panel .btn-primary:hover { background: #f0f9ff; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 2.5rem 0; font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
footer p { margin: 0; font-size: 0.9rem; }

/* ---------- legal pages ---------- */
.legal { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.legal ul { padding-left: 1.25rem; color: var(--text-muted); }
.legal li { margin-bottom: 0.4rem; }
.legal blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  border-left: 3px solid var(--warning-500);
  background: color-mix(in srgb, var(--warning-500) 8%, transparent);
  border-radius: 0 10px 10px 0;
}
.legal blockquote p:last-child { margin-bottom: 0; }
.legal-meta { color: var(--text-muted); font-size: 0.92rem; }

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Keyboard focus must stay visible. */
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
