/* Public marketing pages (marketing app). Same design tokens as app.css so
   the sales site and the product read as one thing; layout/typography scale
   up for a landing-page context. Mobile-first throughout. */

:root {
  --bg: #ffffff;
  --bg-tint: #f2f6fb;
  --card: #ffffff;
  --ink: #16191d;
  --ink-2: #5b6470;
  --ink-3: #98a1ab;
  --line: #e7e9ed;
  --line-2: #eef0f3;
  --accent: #1f6feb;
  --accent-deep: #1a5fce;
  --accent-soft: #eaf1fd;
  --navy: #17355e;      /* wordmark navy (logo) */
  --navy-ink: #dce7f5;  /* text on navy */
  --red: #d9534a;       /* life-ring red, used sparingly */
  --ok: #1f8a4c;
  --alert: #d92d20;
  --alert-soft: #fdecea;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 16px;
  --pagew: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body.mk {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px; line-height: 1.55;
}
/* height:auto so the CLS width/height attributes set aspect ratio only —
   without it a squeezed image keeps its attribute height and stretches. */
.mk img { max-width: 100%; height: auto; }
.mk a { color: var(--accent); }

/* ---- top bar ---- */
.mk-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.mk-brand { display: flex; align-items: center; flex-shrink: 0; }
.mk-brand img { height: 44px; width: auto; display: block; }
.mk-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.mk-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.mk-nav a:hover { color: var(--accent); }
.mk-nav a.mk-signin { color: var(--ink-2); }
.mk-nav a.mk-nav-cta {
  color: #fff; background: var(--accent); border-radius: 10px;
  padding: 9px 14px; flex-shrink: 0;
}
.mk-nav a.mk-nav-cta:hover { background: var(--accent-deep); color: #fff; }
@media (max-width: 520px) {
  .mk-brand img { height: 36px; }
  .mk-nav { gap: 4px 12px; }
  .mk-nav a { font-size: 13.5px; }
  .mk-nav a.mk-nav-cta { padding: 8px 11px; }
}

/* ---- shared layout ---- */
.mk-wrap { max-width: var(--pagew); margin: 0 auto; padding: 0 20px; }
.mk-section { padding: 56px 0; }
.mk-section-tint { background: var(--bg-tint); }
.mk-section-navy { background: var(--navy); color: var(--navy-ink); }
.mk-kicker {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.1px; color: var(--accent); margin: 0 0 10px;
}
.mk-section-navy .mk-kicker { color: #8fb8ef; }
.mk-h2 { font-size: clamp(26px, 4.5vw, 36px); font-weight: 750; letter-spacing: -0.7px; line-height: 1.15; margin: 0 0 12px; }
.mk-h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 6px; }
.mk-lede { font-size: clamp(16px, 2.4vw, 19px); color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 46em; }
.mk-section-navy .mk-lede { color: var(--navy-ink); }
.mk-center { text-align: center; }
.mk-center .mk-lede { margin-left: auto; margin-right: auto; }

/* ---- buttons ---- */
/* `a.mk-btn` (not bare .mk-btn): must outrank the `.mk a` link color above,
   or anchor-buttons render accent-on-accent — invisible text. */
.mk-btn, a.mk-btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  background: var(--accent); color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 650; border-radius: 12px; padding: 14px 26px;
}
.mk-btn:hover, a.mk-btn:hover { background: var(--accent-deep); color: #fff; }
.mk-btn-ghost, a.mk-btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.mk-btn-ghost:hover, a.mk-btn-ghost:hover { background: var(--line-2); color: var(--ink); border-color: var(--ink-3); }
.mk-section-navy .mk-btn-ghost, .mk-section-navy a.mk-btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.mk-section-navy .mk-btn-ghost:hover, .mk-section-navy a.mk-btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.mk-btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
/* Fine print still has to pass AA on white: --ink-2 (6.0:1), never --ink-3. */
.mk-btn-note { font-size: 13px; color: var(--ink-2); margin-top: 12px; }

/* ---- hero ---- */
.mk-hero { padding: 48px 0 0; overflow: hidden; }
.mk-hero-grid { display: grid; gap: 36px; align-items: center; }
.mk-h1 {
  font-size: clamp(32px, 6vw, 52px); font-weight: 800;
  letter-spacing: -1.2px; line-height: 1.06; margin: 0 0 16px; color: var(--navy);
}
.mk-hero .mk-lede { font-size: clamp(17px, 2.6vw, 20px); }
.mk-hero-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.4px;
  color: var(--navy); background: var(--accent-soft);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
}
.mk-hero-tagline .ring { width: 14px; height: 14px; border-radius: 50%;
  border: 4px solid var(--red); box-shadow: 0 0 0 1.5px var(--navy) inset; }
@media (min-width: 880px) {
  .mk-hero-grid { grid-template-columns: 11fr 9fr; }
}

/* Phone-framed product shot */
.mk-phone {
  width: min(320px, 78vw); margin: 0 auto;
  border: 10px solid #16191d; border-radius: 40px;
  box-shadow: 0 24px 60px rgba(23,53,94,0.28), 0 4px 14px rgba(23,53,94,0.18);
  overflow: hidden; background: #eceef1;
}
.mk-phone img { display: block; width: 100%; height: auto; }
.mk-shot {
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 14px 40px rgba(23,53,94,0.16);
  overflow: hidden; background: #eceef1;
}
.mk-shot img { display: block; width: 100%; height: auto; }
/* Phones: a 2560px-wide product shot squeezed to 350px is unreadable —
   let it keep a legible width and swipe sideways instead. */
@media (max-width: 699px) {
  .mk-shot { overflow-x: auto; }
  .mk-shot img { max-width: none; width: 760px; }
}

/* Wave divider (inline SVG sized here) */
.mk-wave { display: block; width: 100%; height: 56px; margin-top: 40px; }
@media (max-width: 700px) { .mk-wave { height: 34px; margin-top: 28px; } }

/* ---- feature cards ---- */
.mk-grid { display: grid; gap: 16px; margin-top: 34px; }
@media (min-width: 640px) { .mk-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .mk-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.mk-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 22px 24px;
  box-shadow: 0 1px 2px rgba(20,25,35,0.04);
}
.mk-section-tint .mk-card { box-shadow: 0 2px 10px rgba(23,53,94,0.06); }
.mk-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.mk-icon {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.mk-icon svg { display: block; }

/* ---- alternating feature rows (features page + landing) ---- */
.mk-row { display: grid; gap: 28px; align-items: center; margin-top: 44px; }
/* Kill the grid item's automatic min-content floor: without this, a wide
   .mk-shot screenshot inside a row inflates the whole track past the phone
   viewport and the entire page pans sideways. */
.mk-row > * { min-width: 0; }
@media (min-width: 880px) {
  .mk-row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .mk-row-flip > .mk-row-media { order: 2; }
}
.mk-row h2, .mk-row h3 { font-size: clamp(21px, 3vw, 26px); font-weight: 750; letter-spacing: -0.5px; margin: 0 0 10px; }
.mk-row p { color: var(--ink-2); margin: 0 0 14px; }
.mk-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mk-checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.mk-checks li strong { font-weight: 650; }
.mk-checks .tick {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 7px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.mk-checks .tick svg { display: block; }

/* ---- day-in-the-life strip ---- */
.mk-day { display: grid; gap: 14px; margin-top: 34px; }
@media (min-width: 640px) { .mk-day { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .mk-day { grid-template-columns: repeat(3, 1fr); } }
.mk-day-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 20px; }
.mk-day-time { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.mk-day-step h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.mk-day-step p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* ---- trust strip ---- */
.mk-trust { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 640px) { .mk-trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .mk-trust { grid-template-columns: repeat(4, 1fr); } }
.mk-trust-item { display: flex; gap: 12px; align-items: flex-start; }
.mk-trust-item .mk-icon { width: 34px; height: 34px; border-radius: 10px; margin: 0; flex-shrink: 0; }
.mk-trust-item h3 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.mk-trust-item p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.mk-section-navy .mk-trust-item p { color: var(--navy-ink); }
.mk-section-navy .mk-trust-item .mk-icon { background: rgba(255,255,255,0.12); color: #8fb8ef; }

/* ---- closing CTA panel ---- */
.mk-cta-panel {
  background: var(--navy); color: #fff; border-radius: 22px;
  padding: clamp(30px, 6vw, 56px); text-align: center;
  position: relative; overflow: hidden;
}
.mk-cta-panel .mk-h2 { color: #fff; }
.mk-cta-panel p { color: var(--navy-ink); max-width: 40em; margin: 0 auto; }
.mk-cta-panel .mk-btn-row { justify-content: center; }
.mk-cta-panel .mk-btn, .mk-cta-panel a.mk-btn { background: #fff; color: var(--navy); }
.mk-cta-panel .mk-btn:hover, .mk-cta-panel a.mk-btn:hover { background: var(--accent-soft); }
.mk-cta-wave { position: absolute; left: 0; right: 0; bottom: -2px; opacity: 0.16; pointer-events: none; }

/* ---- pricing ---- */
.mk-plan {
  max-width: 460px; margin: 34px auto 0;
  background: var(--card); border: 2px solid var(--accent);
  border-radius: 20px; padding: 28px 26px 30px; text-align: center;
  box-shadow: 0 14px 40px rgba(23,53,94,0.12);
}
.mk-plan-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 5px 13px;
}
.mk-plan-price { font-size: 44px; font-weight: 800; letter-spacing: -1px; color: var(--navy); margin: 14px 0 2px; }
.mk-plan-sub { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }
.mk-plan .mk-checks { text-align: left; margin: 0 auto 22px; max-width: 24em; }
.mk-faq { max-width: 720px; margin: 30px auto 0; }
.mk-faq details { border-top: 1px solid var(--line); padding: 4px 2px; }
.mk-faq details:last-child { border-bottom: 1px solid var(--line); }
.mk-faq summary { cursor: pointer; font-size: 16px; font-weight: 650; padding: 14px 4px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: '+'; font-size: 20px; font-weight: 500; color: var(--ink-3); }
.mk-faq details[open] summary::after { content: '–'; }
.mk-faq details p { margin: 0 4px 16px; color: var(--ink-2); font-size: 15px; }

/* ---- early access form ---- */
.mk-form-wrap { max-width: 560px; margin: 0 auto; }
.mk-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 22px 26px; box-shadow: 0 2px 10px rgba(23,53,94,0.06);
  margin-top: 28px;
}
.mk-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.mk-form .field-label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.mk-form .field-label em { font-style: normal; color: var(--ink-2); font-weight: 500; }
.mk-form input[type="text"], .mk-form input[type="email"], .mk-form textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 11px;
  padding: 12px 13px; background: #fafbfc; font-size: 15px; color: var(--ink);
  font-family: inherit;
}
.mk-form input:focus, .mk-form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.mk-form textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.mk-form .errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--alert); font-size: 13px; font-weight: 600; }
.mk-form .mk-btn { width: 100%; }
.mk-form-foot { font-size: 12.5px; color: var(--ink-2); text-align: center; margin: 12px 0 0; }
/* Honeypot: parked far off-canvas (not display:none — the dumber bots skip
   hidden inputs). Real users never see or tab into it. */
.ea-trap { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer ---- */
.mk-footer { border-top: 1px solid var(--line); padding: 36px 0 46px; margin-top: 64px; }
.mk-footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.mk-footer img { height: 40px; width: auto; }
.mk-footer-tag { font-size: 13.5px; color: var(--ink-2); margin: 8px 0 0; }
.mk-footer-nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.mk-footer-nav a { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.mk-footer-nav a:hover { color: var(--accent); }
.mk-footer-fine { font-size: 12.5px; color: var(--ink-2); margin-top: 26px; }

/* ---- thanks page ---- */
.mk-thanks { max-width: 560px; margin: 0 auto; text-align: center; padding: 72px 0; }
.mk-thanks .mk-icon { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 18px; }

/* ---- privacy policy (long-form prose) ---- */
.mk-policy { max-width: 720px; }
.mk-policy-date { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }
.mk-policy h2 { font-size: clamp(19px, 2.6vw, 23px); color: var(--ink); margin: 40px 0 10px; letter-spacing: -0.01em; }
.mk-policy p, .mk-policy li { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.mk-policy p { margin: 0 0 14px; }
.mk-policy ul { margin: 0 0 14px; padding-left: 22px; }
.mk-policy li { margin-bottom: 10px; }
.mk-policy strong { color: var(--ink); }
.mk-policy a { color: var(--accent); }
