/* TaskMetric marketing site — self-contained, no build step.
   Aesthetic: warm editorial productivity. Cream paper, tomato-red accents, teal highlights.
   Fraunces (display serif) + Hanken Grotesk (body) + JetBrains Mono (timer digits). */

:root {
  --cream: #f6f4ec;
  --paper: #ffffff;
  --ink: #17212b;
  --ink-soft: #3a464f;
  --muted: #6b7680;
  --line: #e6e3d8;
  --red: #e84a5f;
  --red-deep: #c4324a;
  --red-soft: #ffe7ea;
  --teal: #0e9384;
  --teal-soft: #dff5ef;
  --amber: #f4a62a;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(23, 33, 43, 0.04), 0 12px 32px -12px rgba(23, 33, 43, 0.18);
  --shadow-lg: 0 2px 4px rgba(23, 33, 43, 0.05), 0 30px 60px -24px rgba(23, 33, 43, 0.28);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 88% -8%, rgba(232, 74, 95, 0.10), transparent 60%),
    radial-gradient(700px 480px at -6% 8%, rgba(14, 147, 132, 0.08), transparent 55%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(232, 74, 95, 0.6); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(196, 50, 74, 0.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(246, 244, 236, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.brand .accent { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lnk { font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: color .15s ease; }
.nav-links a.lnk:hover { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- hero ---------- */
.hero { padding: 86px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft); padding: 7px 14px; border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(40px, 6vw, 68px); line-height: 1.02; margin: 22px 0 20px;
  font-optical-sizing: auto;
}
.hero h1 .mark { color: var(--red); font-style: italic; position: relative; }
.hero p.lede { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* animated entrance */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ---------- phone / timer mock ---------- */
.mock { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; background: var(--paper); border-radius: 34px; padding: 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }
.phone-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 16px; }
.phone-head .b { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.phase-pill { font-size: 12px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 5px 11px; border-radius: 999px; }
.dial { position: relative; width: 220px; height: 220px; margin: 8px auto 16px; border-radius: 50%;
  background: conic-gradient(var(--red) 0deg 156deg, var(--red-soft) 156deg 360deg);
  display: grid; place-items: center; }
.dial::after { content: ""; position: absolute; inset: 16px; background: var(--paper); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.dial-inner { position: relative; z-index: 1; text-align: center; }
.dial-inner .time { font-family: var(--font-mono); font-weight: 700; font-size: 46px; letter-spacing: -0.02em; color: var(--ink); }
.dial-inner .lab { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mock-task { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; }
.mock-task .check { width: 22px; height: 22px; border-radius: 7px; background: var(--teal); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; flex: none; }
.mock-task .t { font-weight: 700; font-size: 15px; }
.mock-task .s { font-size: 12.5px; color: var(--muted); }
.mock-dots { display: flex; gap: 7px; justify-content: center; margin-top: 16px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-dots i.on { background: var(--red); }
.leaf-badge { position: absolute; top: -14px; right: 36px; width: 26px; height: 26px; border-radius: 9px; background: var(--teal); transform: rotate(45deg); box-shadow: var(--shadow); }

/* ---------- section scaffold ---------- */
section { padding: 84px 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.sec-head h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(30px, 4vw, 44px); line-height: 1.06; margin: 14px 0 14px; }
.sec-head p { font-size: 18px; color: var(--ink-soft); }

/* ---------- features ---------- */
.features { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5)); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: var(--red-soft); color: var(--red-deep); }
.feat:nth-child(3n+2) .ico { background: var(--teal-soft); color: var(--teal); }
.feat:nth-child(3n) .ico { background: #fdeecd; color: #9a6410; }
.feat h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 7px; }
.feat p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--red);
  display: block; margin-bottom: 14px;
}
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-soft); }
.step .min { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- stats band ---------- */
.band { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px 40px; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.band .n { font-family: var(--font-display); font-weight: 600; font-size: 46px; color: #fff; letter-spacing: -0.02em; }
.band .n em { color: var(--red); font-style: normal; }
.band .l { color: #aab4bc; font-size: 15px; margin-top: 4px; }

/* ---------- final cta ---------- */
.cta-final { text-align: center; }
.cta-card {
  background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff;
  border-radius: 28px; padding: 64px 32px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-card::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(420px 220px at 85% -10%, rgba(255,255,255,0.22), transparent 60%); }
.cta-card h2 { position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.02em; line-height: 1.05; }
.cta-card p { position: relative; font-size: 18px; color: rgba(255,255,255,0.9); margin: 14px auto 28px; max-width: 32em; }
.cta-card .btn-light { background: #fff; color: var(--red-deep); position: relative; }
.cta-card .btn-light:hover { transform: translateY(-2px); }

/* ---------- footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.foot-brand p { color: var(--muted); font-size: 15px; max-width: 28em; margin-top: 14px; }
.foot-col h5 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-soft); font-weight: 600; font-size: 15px; padding: 5px 0; transition: color .15s ease; }
.foot-col a:hover { color: var(--red); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; flex-wrap: wrap; }

/* ---------- legal / doc pages ---------- */
.doc { padding: 56px 0 40px; }
.doc-wrap { max-width: 760px; margin: 0 auto; }
.doc .back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 26px; }
.doc .back:hover { color: var(--red); }
.doc h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.02em; line-height: 1.05; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 12px 0 30px; }
.doc-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 40px; box-shadow: var(--shadow); }
.doc-body h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; margin: 30px 0 10px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 18px; font-weight: 700; margin: 20px 0 6px; }
.doc-body p, .doc-body li { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.doc-body p { margin-bottom: 12px; }
.doc-body ul { margin: 8px 0 16px; padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body a { color: var(--red-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.doc-body strong { color: var(--ink); font-weight: 700; }
.callout { background: var(--teal-soft); border: 1px solid #bfe7df; border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0; font-size: 15px; color: #0b5b51; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mock { order: -1; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: 1fr; gap: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links .lnk { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  section { padding: 60px 0; }
  .feat-grid, .steps-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .band, .cta-card { padding: 44px 22px; }
  .nav-cta .btn-ghost { display: none; }
}
