/* MockWire landing — Snow UI design language, zero dependencies.
   Mirrors the app's light theme: white canvas, soft borderless bg2 cards, a
   monochrome black-alpha interaction ramp, a BLACK brand, fixed pastel accents,
   Inter. Light-only — the marketing site stays one consistent look regardless
   of the visitor's OS appearance. */

:root {
  color-scheme: light;
  /* Canvas + monochrome ramp (flips in dark) */
  --bg: #ffffff;
  --card: #f9f9fa;          /* bg2 — soft tinted card, no border/shadow */
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.55);
  --muted-2: rgba(0, 0, 0, 0.40);
  --faint: rgba(0, 0, 0, 0.20);
  --subtle: rgba(0, 0, 0, 0.04);
  --hover: rgba(0, 0, 0, 0.05);
  --sel: rgba(0, 0, 0, 0.10);
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.20);

  /* Brand — black CTA buttons (Snow light) */
  --brand: #000000;
  --brand-hover: #333333;
  --on-brand: #ffffff;
  /* Accent — a legible indigo (text-weight sibling of the pastel --indigo),
     used for emphasis text like the hero's "MockWire does." */
  --accent: #5d5ef2;
  --accent-soft: #eceafd;

  /* Snow pastels — fixed in BOTH modes (they never flip) */
  --purple: #c9b3ed;
  --indigo: #9f9ff8;
  --blue: #92bfff;
  --cyan: #aec7ed;
  --mint: #96e2d6;
  --green: #94e9b8;
  --yellow: #ffdb56;
  --orange: #ffb55b;
  --red: #ff4747;
  --bg3: #e6f1fd;          /* pastel surface (fixed) */
  --bg4: #edeefc;          /* pastel surface (fixed) */
  --on-pastel: rgba(0, 0, 0, 0.78);
  --on-pastel-muted: rgba(0, 0, 0, 0.55);

  /* Legible status inks for colored text on the canvas */
  --danger-ink: #e03131;
  --warn-ink: #9a6b1f;
  --success-ink: #1f8a50;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-float: 0 24px 60px -28px rgba(0, 0, 0, 0.35), 0 4px 14px -6px rgba(0, 0, 0, 0.12);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Eyebrow — small caps label */
.eyebrow {
  display: inline-block;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.02em;
  color: var(--muted-2);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--subtle);
}
.eyebrow.tint { background: var(--bg4); color: var(--on-pastel); }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand); color: var(--on-brand);
  display: grid; place-items: center; font: 700 15px/1 var(--sans);
}
nav .links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--muted); font-weight: 500; }
nav .links a { transition: color .15s ease; }
nav .links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px; height: 44px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .1s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--hover); border-color: var(--line-strong); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: var(--radius-sm); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: var(--radius-lg); }
.btn .k { font-size: 12px; opacity: 0.6; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 52px; font-weight: 600; margin: 20px 0 0; letter-spacing: -0.035em; }
.hero h1 .said { color: var(--accent); }
.hero p.sub { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 540px; margin-top: 22px; }
.cta-row { display: flex; gap: 12px; margin: 32px 0 20px; flex-wrap: wrap; }
.trust { font: 500 13.5px/1.5 var(--sans); color: var(--muted); display: flex; align-items: center; gap: 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 45%, transparent); }

/* ---------- App-window mockup (hero visual) ---------- */
.window {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
  overflow: hidden;
}
.window .titlebar {
  display: flex; align-items: center; gap: 14px;
  height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.tl { display: flex; gap: 7px; }
.tl i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.tl .r { background: #ff5f57; } .tl .y { background: #febc2e; } .tl .g { background: #28c840; }
.window .crumbs { font-size: 12.5px; color: var(--muted-2); font-weight: 500; }
.window .crumbs b { color: var(--text); font-weight: 600; }
.window .live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px/1 var(--sans); color: var(--on-pastel);
  background: var(--mint); padding: 5px 9px; border-radius: 999px;
}
.window .live .p { width: 6px; height: 6px; border-radius: 50%; background: var(--success-ink); }
.window .body { padding: 18px; }

/* Drift card — mirrors the app's SchemaScreen DriftCard */
.drift-card { background: var(--card); border-radius: var(--radius); padding: 16px; }
.drift-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.badge {
  font: 600 10px/1 var(--mono); letter-spacing: 0.02em;
  padding: 4px 7px; border-radius: 6px;
  background: var(--blue); color: var(--on-pastel);
}
.badge.get { background: var(--blue); }
.drift-head .path { font: 500 12.5px/1 var(--mono); color: var(--text); }
.tag-breaking {
  margin-left: auto; font: 600 10px/1 var(--sans);
  padding: 5px 9px; border-radius: var(--radius-sm);
  background: var(--red); color: #fff;
}
.drift-body { display: grid; gap: 5px; font: 13px/1.6 var(--mono); }
.drift-row { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); }
.drift-row .sym { font-weight: 700; text-align: center; }
.r-removed { background: color-mix(in srgb, var(--red) 20%, transparent); } .r-removed .sym { color: var(--danger-ink); }
.r-changed { background: color-mix(in srgb, var(--yellow) 32%, transparent); } .r-changed .sym { color: var(--warn-ink); }
.r-added   { background: color-mix(in srgb, var(--green) 30%, transparent); } .r-added .sym { color: var(--success-ink); }
.drift-row .k { color: var(--text); font-weight: 500; } .drift-row .meta { color: var(--muted); }
.strike { text-decoration: line-through; color: var(--faint); }
.drift-foot { display: flex; gap: 8px; margin-top: 12px; }
.chip { font: 500 11px/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: var(--subtle); color: var(--muted); }
.chip.warn { background: color-mix(in srgb, var(--yellow) 32%, transparent); color: var(--on-pastel); }
.chip.err { background: color-mix(in srgb, var(--red) 20%, transparent); color: var(--danger-ink); }

/* ---------- Logos / social proof strip ---------- */
.proof { padding: 40px 0; }
.proof .wrap { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.proof span { font-size: 13px; color: var(--faint); font-weight: 500; letter-spacing: 0.01em; }

/* ---------- Problem ---------- */
.lead { font-size: 30px; line-height: 1.28; font-weight: 600; max-width: 860px; letter-spacing: -0.03em; margin-top: 18px; }
.lead .hl { color: var(--danger-ink); }
.lead .em { color: var(--text); }
.lead-sub { font-size: 17px; color: var(--muted); max-width: 640px; margin-top: 20px; }

/* ---------- Section heads ---------- */
.sec-head { max-width: 720px; }
.sec-head h2 { font-size: 34px; margin-top: 16px; letter-spacing: -0.032em; }
.sec-head p { font-size: 17px; color: var(--muted); margin-top: 14px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.feature { background: var(--card); border-radius: var(--radius-lg); padding: 24px; }
.feature .ico {
  width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center;
  font-size: 19px; margin-bottom: 16px;
}
.feature h3 { font-size: 16px; margin-bottom: 8px; letter-spacing: -0.02em; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.feature p b { color: var(--text); font-weight: 600; }
.ico.p-blue { background: var(--blue); } .ico.p-green { background: var(--green); }
.ico.p-orange { background: var(--orange); } .ico.p-purple { background: var(--purple); }
.ico.p-indigo { background: var(--indigo); } .ico.p-cyan { background: var(--cyan); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.step { background: var(--card); border-radius: var(--radius-lg); padding: 24px; }
.step .n {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  font: 600 14px/30px var(--sans); text-align: center; margin-bottom: 16px;
}
.step h3 { font-size: 16px; letter-spacing: -0.02em; }
.step p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.55; }

/* ---------- Compare table ---------- */
.compare-wrap { margin-top: 40px; background: var(--card); border-radius: var(--radius-lg); padding: 8px 24px 12px; overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.compare th, table.compare td { padding: 15px 16px; text-align: left; }
table.compare thead th { color: var(--muted-2); font-weight: 500; font-size: 13px; border-bottom: 1px solid var(--line-strong); }
table.compare thead th:nth-child(2) { color: var(--text); font-weight: 600; }
table.compare tbody td.feat { color: var(--text); font-weight: 500; }
table.compare tbody tr td:nth-child(2) { font-weight: 600; }
table.compare .yes { color: var(--success-ink); font-weight: 600; }
table.compare .yes::before { content: "✓ "; }
table.compare .no { color: var(--faint); }
table.compare tbody tr:not(:last-child) td { border-bottom: 1px solid var(--line); }
table.compare tbody tr td:nth-child(2) { background: color-mix(in srgb, var(--bg4) 45%, transparent); }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 460px; margin: 44px auto 0; padding: 36px;
  background: var(--card); border-radius: var(--radius-xl); text-align: center;
}
.price { font-size: 52px; font-weight: 600; letter-spacing: -0.04em; }
.price small { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: -0.01em; }
.anchor { font-size: 14px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.anchor b { color: var(--text); font-weight: 600; }
.price-card ul { list-style: none; text-align: left; margin: 24px 0; display: grid; gap: 12px; }
.price-card li { font-size: 14.5px; color: var(--muted); display: flex; gap: 11px; align-items: flex-start; }
.price-card li::before { content: "✓"; color: var(--success-ink); font-weight: 700; flex: none; }
.price-card .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: var(--radius); padding: 4px 20px; transition: background .15s ease; }
.faq details[open] { background: var(--card); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--muted); font-weight: 400; font-size: 22px;
  line-height: 1; transition: transform .2s ease; flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); font-size: 14.5px; line-height: 1.6; padding: 0 0 18px; }
.faq p i { color: var(--text); font-style: italic; }

/* ---------- Final CTA ---------- */
.final .wrap { text-align: center; }
.final-card {
  background: var(--bg4); border-radius: var(--radius-xl);
  padding: 64px 32px; text-align: center;
}
.final-card h2 { font-size: 38px; letter-spacing: -0.035em; color: var(--on-pastel); }
.final-card p { color: var(--on-pastel-muted); font-size: 17px; margin: 14px 0 30px; }
.final-card .btn-primary { background: #000; color: #fff; }
.final-card .btn-primary:hover { background: #333; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
footer .brand { font-size: 14px; }
footer a { transition: color .15s ease; }
footer a:hover { color: var(--text); }
footer .spacer { margin-left: auto; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 28px; }
.legal h1 { font-size: 32px; margin-bottom: 10px; letter-spacing: -0.03em; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); font-size: 15px; margin-bottom: 10px; line-height: 1.6; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.legal code {
  font: 500 13px/1 var(--mono); color: var(--text);
  background: var(--subtle); padding: 2px 6px; border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .features, .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 38px; }
  .hero p.sub { font-size: 16px; }
  .lead { font-size: 24px; }
  .sec-head h2 { font-size: 28px; }
  section { padding: 68px 0; }
  nav .links { display: none; }
  .window { margin-top: 8px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: 32px; }
  .cta-row .btn { flex: 1; }
  .final-card { padding: 44px 20px; }
  .final-card h2 { font-size: 28px; }
}
