/* CoreWorkSuite marketing site. Static pages only; the app under /app has
   its own stylesheet. Tokens derived from the app's design system
   (docs/DESIGN_SYSTEM.md) so product screenshots feel native here. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/inter-latin-800-normal.woff2') format('woff2');
}

:root {
  --bg: #f3f2ef;
  --surface: #ffffff;
  --surface-2: #eceae5;
  --border: #e3e1db;
  --text: #1d2330;
  --muted: #667085;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0fe;
  --green: #16a34a;
  --dark-bg: #0f1115;
  --dark-surface: #171a21;
  --dark-border: #2a2f3a;
  --dark-text: #e6e8ec;
  --dark-muted: #a5aebd;
  --shadow: 0 1px 2px rgba(29, 35, 48, 0.06), 0 2px 8px rgba(29, 35, 48, 0.05);
  --shadow-lift: 0 2px 4px rgba(29, 35, 48, 0.08), 0 8px 20px rgba(29, 35, 48, 0.09);
  --radius: 14px;
  --content: 72rem;
  --prose: 42rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---- Navigation ---------------------------------------------------------- */
.mk-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.mk-nav.scrolled { border-bottom-color: var(--border); }
.mk-nav .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
}
/* At phone widths the Sign in ghost button doesn't fit beside Start free +
   the menu button; it lives in the mobile menu instead. */
@media (max-width: 639px) {
  .mk-nav-cta .mk-btn.ghost { display: none; }
}
.mk-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mk-links {
  display: none;
  gap: 0.25rem;
  margin: 0 auto;
}
.mk-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
}
.mk-links a:hover { color: var(--text); background: var(--surface-2); }
.mk-links a[aria-current='page'] { color: var(--text); font-weight: 600; }
.mk-nav-cta { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.mk-menu-btn {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font: inherit;
}
.mk-mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 1.25rem 1rem;
}
.mk-mobile-menu.open { display: block; }
.mk-mobile-menu a {
  display: block;
  padding: 0.7rem 0.5rem;
  text-decoration: none;
  font-weight: 500;
  border-radius: 10px;
}
.mk-mobile-menu a:hover { background: var(--surface-2); }

/* ---- Buttons ------------------------------------------------------------- */
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s, box-shadow 0.15s;
}
.mk-btn.primary { background: var(--accent); color: var(--accent-ink); }
.mk-btn.primary:hover { filter: brightness(1.08); box-shadow: var(--shadow-lift); }
.mk-btn.ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.mk-btn.ghost:hover { border-color: var(--muted); }
.mk-btn.small { padding: 0.45rem 1.1rem; font-size: 0.9375rem; }
.mk-dark .mk-btn.ghost { background: transparent; border-color: var(--dark-border); color: var(--dark-text); }

/* ---- Sections ------------------------------------------------------------ */
section { padding: clamp(4rem, 10vw, 7.5rem) 0; }
.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1.25rem;
}
h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 1rem;
}
h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.125rem, 2vw, 1.3125rem); color: var(--muted); max-width: var(--prose); margin: 0 0 2rem; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* ---- Hero ---------------------------------------------------------------- */
.mk-hero { padding-top: clamp(3rem, 8vw, 6rem); text-align: center; }
.mk-hero .lede { margin-left: auto; margin-right: auto; }
.mk-hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.mk-shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.mk-shot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.mk-shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.mk-hero .mk-shot { max-width: 62rem; margin: 0 auto; }

/* ---- Problem: fragments converge ----------------------------------------- */
.mk-fragments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 34rem;
  margin: 2.5rem auto 0;
}
.mk-fragment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow);
}
.mk-fragment svg { color: var(--muted); flex: none; }
.js .reveal .mk-fragment { transform: translateY(14px) rotate(var(--r, 0deg)); opacity: 0; }
.reveal.in .mk-fragment {
  transform: none;
  opacity: 1;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s;
  transition-delay: var(--d, 0s);
}
.mk-converge {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Before / after ------------------------------------------------------- */
.mk-compare { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .mk-compare { grid-template-columns: 1fr 1fr; } }
.mk-panel {
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
}
.mk-panel.before { background: var(--surface-2); }
.mk-panel.after { background: var(--surface); box-shadow: var(--shadow-lift); }
.mk-panel h3 { margin-bottom: 1rem; }
.mk-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.mk-panel li { display: flex; gap: 0.6rem; align-items: baseline; }
.mk-panel.before li::before { content: '\00d7'; color: var(--muted); font-weight: 700; }
.mk-panel.after li::before { content: '\2713'; color: var(--green); font-weight: 700; }

/* ---- Product story -------------------------------------------------------- */
.mk-feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
/* Grid items default to min-width:auto - wide unwrappable content (the
   focus-bar mock) would force the column past the viewport on phones. */
.mk-feature > * { min-width: 0; }
@media (min-width: 900px) {
  .mk-feature { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .mk-feature.flip .mk-feature-text { order: 2; }
}
.mk-feature-text .eyebrow { margin-bottom: 0.6rem; }
.mk-feature-text p { color: var(--muted); max-width: 36rem; }
.mk-feature-text .why { color: var(--text); font-weight: 500; }

/* Focus mock (pure CSS, mirrors the app's focus bar) */
.mk-focusbar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 22px;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  max-width: 100%;
  text-align: center;
}
.mk-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: mk-pulse 1.6s ease-in-out infinite;
}
@keyframes mk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.mk-focus-clock { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; }
.mk-focus-stop {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-weight: 600;
  font-size: 0.8125rem;
}
.mk-focus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 2.5rem 2rem;
  display: grid;
  place-items: center;
  gap: 1.2rem;
}
.mk-meter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  color: var(--green);
  border: 1px solid var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
}

/* ---- AI section ------------------------------------------------------------ */
.mk-ai {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow);
}
.mk-ai-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .mk-ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mk-ai-grid { grid-template-columns: repeat(5, 1fr); } }
.mk-ai-item h3 { font-size: 1.0625rem; }
.mk-ai-item p { margin: 0; font-size: 0.9375rem; color: var(--muted); }

/* ---- Integrations ----------------------------------------------------------- */
.mk-integrations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) { .mk-integrations { grid-template-columns: repeat(5, 1fr); } }
.mk-int {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow);
}
.mk-int small { color: var(--muted); font-weight: 400; }

/* ---- Social proof ------------------------------------------------------------ */
.mk-quotes { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .mk-quotes { grid-template-columns: repeat(3, 1fr); } }
.mk-quote {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.mk-quote strong { color: var(--text); display: block; margin-bottom: 0.4rem; }
.mk-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: center;
  margin-top: 3rem;
}
.mk-metric { text-align: center; }
.mk-metric b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.mk-metric span { color: var(--muted); font-size: 0.9375rem; }

/* ---- Pricing ------------------------------------------------------------------ */
.mk-price-card {
  max-width: 26rem;
  margin: 2.5rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 2.5rem 2rem;
  text-align: center;
}
.mk-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.25rem;
}
.mk-price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.6rem;
  text-align: left;
}
.mk-price-card li { display: flex; gap: 0.6rem; align-items: baseline; }
.mk-price-card li::before { content: '\2713'; color: var(--green); font-weight: 700; }

/* ---- FAQ ------------------------------------------------------------------------ */
.mk-faq { max-width: var(--prose); margin: 2.5rem auto 0; display: grid; gap: 0.75rem; }
.mk-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
}
.mk-faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1.1rem 1.35rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: '+'; font-weight: 400; font-size: 1.4rem; color: var(--muted); }
.mk-faq details[open] summary::after { content: '\2212'; }
.mk-faq details > p { margin: 0; padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* ---- Final CTA / dark band -------------------------------------------------------- */
.mk-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.mk-dark h2 { color: var(--dark-text); }
.mk-dark .lede, .mk-dark .muted { color: var(--dark-muted); }

/* ---- Footer -------------------------------------------------------------------------- */
.mk-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  font-size: 0.9375rem;
}
.mk-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 640px) { .mk-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.mk-footer h4 { margin: 0 0 0.75rem; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.mk-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.mk-footer a { text-decoration: none; color: var(--muted); }
.mk-footer a:hover { color: var(--text); }
.mk-fineprint { color: var(--muted); margin-top: 0.75rem; font-size: 0.875rem; }

/* ---- Scroll reveal ---------------------------------------------------------------------- */
/* Hidden-until-revealed applies only when JS is running (html.js is set by
   an inline script) - with JS off or blocked, every section renders
   normally instead of staying invisible forever. */
.js .reveal { opacity: 0; transform: translateY(12px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease-out, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

@media (min-width: 900px) {
  .mk-links { display: flex; }
  .mk-menu-btn { display: none; }
}

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