/*
 * VSTRK static marketing pages (/m/).
 * Values are copied from the "Daylight" palette and styles in src/pages/Website.tsx
 * (C palette, MONO/SANS fonts, Btn, Section, pill, card, header, mobile rules).
 * This file is independent of the React app: it is served from /m/m.css.
 */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --line: #e4e0ec;
  --text: #14131a;
  --mut: #4d4c58;
  --dim: #5c5b66;
  --purple: #5b3df0;
  --lp: #3b24b8;
  --tint: #ece8ff;
  --tint-stroke: #cfcad9;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; }

.container { max-width: 1040px; margin: 0 auto; padding: 24px 24px 72px; }

/* ---------- header ---------- */
.m-header { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 64px; }
.m-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.m-brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); }
.m-brand-name { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0.2em; }
.m-nav { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); }
.m-nav a { color: inherit; text-decoration: none; }
.m-nav a:hover, .m-nav a[aria-current="page"] { color: var(--text); }
.m-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--purple); text-underline-offset: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 11px 20px; border-radius: 10px; text-decoration: none; border: none; cursor: pointer; }
.btn-solid { background: var(--text); color: #fff; }
.btn-primary { display: inline-block; padding: 15px 28px; border-radius: 12px; background: var(--purple); color: #fff; font-family: var(--sans); font-size: 16px; font-weight: 700; text-decoration: none; letter-spacing: 0; text-transform: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- draft banner ---------- */
.draft-banner { margin: 0 0 32px; padding: 10px 16px; border-radius: 10px; background: var(--tint); color: var(--lp); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- breadcrumbs ---------- */
.crumbs { margin: 0 0 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.crumbs a { text-decoration: none; color: var(--dim); }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { margin: 0 8px; color: var(--tint-stroke); }
.crumbs [aria-current="page"] { color: var(--text); }

/* ---------- typography ---------- */
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 8px; }
.m-hero h1, .detail h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; margin: 12px 0 0; }
.lead { font-size: 18px; color: var(--mut); margin: 20px 0 0; max-width: 580px; line-height: 1.6; }
.m-section { margin-top: 64px; }
.m-section h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 12px; }
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--tint); color: var(--lp); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; margin-top: 48px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 22px; box-shadow: 0 24px 50px -32px rgba(59, 36, 184, 0.35); text-decoration: none; transition: border-color 0.15s; min-width: 0; }
.card:hover { border-color: var(--purple); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.card .label { margin: 0; }
.card h3 { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
.card p { font-size: 14px; color: var(--mut); line-height: 1.55; margin: 0 0 14px; }
.card p.muted { color: var(--dim); }
.card-link { margin-top: auto; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lp); }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--tint-stroke); color: var(--dim); white-space: nowrap; }

/* compact compare cards (icon + name + one line) */
.grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-compact { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px; }
.card-compact .mark { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--tint); color: var(--lp); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.card-compact .body { min-width: 0; }
.card-compact h3 { font-size: 17px; margin: 0 0 4px; }
.card-compact .sub { font-size: 14px; color: var(--mut); margin: 0; line-height: 1.45; }
.card-compact .sub.muted { color: var(--dim); }

/* ---------- detail pages ---------- */
.detail { max-width: 760px; }
.detail .m-section:first-of-type { margin-top: 40px; }
.ph { margin-top: 20px; padding: 22px 20px; border: 1.5px dashed var(--tint-stroke); border-radius: 12px; background: #fff; color: var(--dim); }
.ph-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.ph-sub { display: block; margin-top: 6px; font-size: 13px; color: var(--dim); }
.ph-tall { min-height: 180px; }
.ph-media { min-height: 220px; }
.ph-row { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-row .ph { margin-top: 20px; }
.prose { font-size: 17px; line-height: 1.7; color: var(--mut); }
.prose h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; color: var(--text); margin: 56px 0 12px; }
.prose h3 { font-size: 22px; color: var(--text); margin: 36px 0 8px; }
.prose a { color: var(--lp); }
.related { margin-top: 56px; }
.related h2 { font-size: 22px; margin: 0 0 12px; }
.related ul { margin: 0; padding-left: 20px; }

/* tool placeholder interface */
.tool-ui { margin-top: 28px; padding: 24px; }
.tool-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.tool-grid .full { grid-column: 1 / -1; }
.tool-grid label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.tool-grid input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f7f6fb; font-family: var(--sans); font-size: 15px; color: var(--dim); }
.tool-grid input:disabled { cursor: not-allowed; }
.tool-output { margin-top: 22px; }
.tool-output-box { margin: 8px 0 14px; padding: 14px; border: 1.5px dashed var(--tint-stroke); border-radius: 10px; color: var(--dim); font-family: var(--mono); font-size: 13px; word-break: break-all; }
.tool-note { margin: 18px 0 0; font-size: 13px; color: var(--dim); }

/* comparison table skeleton */
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--tint); color: var(--lp); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp td { color: var(--dim); }

/* ---------- CTA ---------- */
.m-cta { margin-top: 96px; text-align: center; }
.m-cta .big { font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.m-cta p { font-size: 16px; color: var(--mut); margin: 0 0 22px; }

/* ---------- footer ---------- */
.m-footer { margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.m-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.m-footer a { color: inherit; text-decoration: none; }
.m-footer a:hover { color: var(--text); }

/* ---------- responsive (breakpoint matches Website.tsx: 640px) ---------- */
@media (max-width: 900px) {
  .grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { padding: 20px 18px 56px; }
  .m-header { gap: 14px 12px; margin-bottom: 36px; }
  .m-nav { order: 3; width: 100%; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .m-nav a { flex: none; padding: 13px 14px; color: var(--text); }
  .m-nav a + a { border-left: 1px solid var(--line); }
  .m-header .btn { padding: 9px 14px; font-size: 11px; letter-spacing: 0.06em; }
  .grid, .grid-compact { grid-template-columns: 1fr; margin-top: 32px; }
  .ph-row, .tool-grid { grid-template-columns: 1fr; }
  .m-section { margin-top: 48px; }
  .m-cta, .m-footer { margin-top: 64px; }
}
