/* Plexus public site: landing, pricing, privacy and terms. Same identity as the app: navy, one blue, slate, Inter.
   Layout: a centred column (max 1120px) of quiet sections separated by space, not boxes. */
:root {
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --surface: #ffffff;
  --fg: #0d1526;
  --fg-2: #3a4457;
  --muted: #687387;
  --border: #e5e8ee;
  --border-strong: #d3d8e1;
  --accent: #2457d6;
  --accent-hover: #1c47b8;
  --accent-soft: #edf2fe;
  --accent-fg: #ffffff;
  --good: #0f7a55;
  --bad: #be2323;
  --navy: #0b1324;
  --navy-fg: #ffffff;
  --navy-muted: #a9b4c7;
  --ring: rgba(36, 87, 214, 0.22);
  --shadow: 0 12px 32px -16px rgba(13, 21, 38, 0.28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a111e; --bg-2: #0e1624; --surface: #111a2a; --fg: #e5eaf2; --fg-2: #c2ccdb; --muted: #8b99b1;
    --border: #1f2a3e; --border-strong: #2d3a52; --accent: #5b8def; --accent-hover: #7ba4f5; --accent-soft: #15254a; --accent-fg: #06142d;
    --good: #35c08c; --bad: #f2736a; --navy: #060d1a; --ring: rgba(91, 141, 239, 0.35); --shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a111e; --bg-2: #0e1624; --surface: #111a2a; --fg: #e5eaf2; --fg-2: #c2ccdb; --muted: #8b99b1;
  --border: #1f2a3e; --border-strong: #2d3a52; --accent: #5b8def; --accent-hover: #7ba4f5; --accent-soft: #15254a; --accent-fg: #06142d;
  --good: #35c08c; --bad: #f2736a; --navy: #060d1a; --ring: rgba(91, 141, 239, 0.35); --shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { padding-block: 72px; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; max-width: 640px; }
.section-head p { color: var(--muted); font-size: 1.0625rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); font: inherit; font-size: 0.9375rem; font-weight: 550; cursor: pointer; white-space: nowrap; transition: background-color 0.12s, border-color 0.12s; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 1rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* top navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top, 0px); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav nav { display: flex; gap: 22px; margin-left: 12px; }
.nav nav a { color: var(--fg-2); font-size: 0.9375rem; }
.nav nav a:hover { color: var(--fg); text-decoration: none; }
.nav .grow { flex: 1; }
.nav .btn { height: 36px; }
@media (max-width: 720px) { .nav nav { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: center; padding-block: 72px 56px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.1875rem; line-height: 1.55; margin-top: 18px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.facts { display: flex; gap: 8px 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 26px 0 0; color: var(--muted); font-size: 0.875rem; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--good); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); padding-block: 48px 32px; } }

/* live preview card (the example network, computed in the page) */
.preview { margin: 0; background: #ffffff; color: #0f172a; border: 1px solid #e5e8ee; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.preview-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; font-size: 0.75rem; color: #475569; font-weight: 600; }
.preview-head i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.preview-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; min-height: 230px; }
.preview-body > div { padding: 12px; min-width: 0; }
.preview-body > div + div { border-left: 1px solid #e2e8f0; }
.preview-body svg { width: 100%; height: auto; display: block; }
.pv-title { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.07em; color: #64748b; font-weight: 700; margin: 2px 2px 8px; }
.pv-table table { width: 100%; border-collapse: collapse; font-size: 0.75rem; color: #0f172a; font-variant-numeric: tabular-nums; }
.pv-table th { text-align: left; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; font-weight: 700; padding: 4px 4px 6px; border-bottom: 1px solid #e2e8f0; }
.pv-table th.num, .pv-table td.num { text-align: right; }
.pv-table td { padding: 7px 3px; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.pv-table td:first-child { font-weight: 600; white-space: normal; }
.pv-muted { color: #94a3b8; }
.pv-bar { display: inline-block; width: 32px; height: 6px; border-radius: 999px; background: #e2e8f0; vertical-align: middle; margin-right: 6px; overflow: hidden; }
.pv-bar i { display: block; height: 100%; background: #2457d6; border-radius: 999px; }
.pv-note { font-size: 0.625rem; color: #94a3b8; margin: 8px 2px 0; }
.preview-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e2e8f0; }
.preview-foot div { padding: 10px 14px; font-size: 0.6875rem; color: #64748b; }
.preview-foot div + div { border-left: 1px solid #e2e8f0; }
.preview-foot strong { display: block; color: #0f172a; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.pv-loading { color: #94a3b8; font-size: 0.8125rem; padding: 24px; }

/* proof strip */
.proof { background: var(--navy); color: var(--navy-fg); padding-block: 36px; }
.proof .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.proof strong { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.proof span { color: var(--navy-muted); font-size: 0.875rem; }
@media (max-width: 760px) { .proof .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the 11 steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.phase { border: 1px solid var(--border); border-radius: 12px; padding: 20px; background: var(--surface); }
.phase h3 { margin-bottom: 12px; }
.phase ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.phase li { display: flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: 0.9375rem; }
.phase li b { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 0.6875rem; font-weight: 650; color: var(--accent); background: var(--accent-soft); font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: minmax(0, 1fr); } }

/* features */
.alt { background: var(--bg-2); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* worked example */
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.example .kicker { color: var(--accent); font-weight: 600; font-size: 0.875rem; margin-bottom: 8px; }
.example p { color: var(--muted); margin-top: 12px; }
.ex-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.ex-table th { text-align: left; font-size: 0.8125rem; color: var(--muted); font-weight: 550; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ex-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.ex-table td.num, .ex-table th.num { text-align: right; }
.ex-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 8px 8px 12px; overflow-x: auto; }
.ex-note { font-size: 0.8125rem; color: var(--muted); padding: 10px 12px 0; }
@media (max-width: 860px) { .example { grid-template-columns: minmax(0, 1fr); } }

/* waitlist */
.wl { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.wl-form { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wl-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 550; color: var(--fg-2); }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea { font: inherit; font-size: 0.9375rem; color: var(--fg); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 9px 11px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
textarea { resize: vertical; min-height: 64px; }
.wl-form label.consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--fg-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-msg { font-size: 0.9375rem; min-height: 1.5em; }
.wl-msg.ok { color: var(--good); font-weight: 550; }
.wl-msg.err { color: var(--bad); }
@media (max-width: 860px) { .wl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 10px; max-width: 62ch; }

/* pricing */
.pricing-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 64px 32px; }
.pricing-head p { color: var(--muted); font-size: 1.0625rem; max-width: 40em; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); margin-top: 8px; }
.toggle button { border: 0; background: none; font: inherit; font-size: 0.875rem; font-weight: 550; color: var(--muted); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.toggle button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(13, 21, 38, 0.12); }
.toggle .save { color: var(--good); font-weight: 600; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 24px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan .tag { font-size: 0.75rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.plan .tag.soon { color: var(--muted); background: var(--bg-2); }
.plan .for { color: var(--muted); font-size: 0.875rem; min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 0.875rem; }
.plan .sub { color: var(--muted); font-size: 0.8125rem; min-height: 1.4em; margin-top: -10px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 0.9375rem; color: var(--fg-2); flex: 1; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: ""; width: 16px; height: 16px; flex: none; margin-top: 4px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan .btn { width: 100%; }
.pricing-notes { color: var(--muted); font-size: 0.875rem; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding-block: 28px 72px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* legal pages */
.doc { max-width: 720px; padding-block: 56px 80px; }
.doc h1 { font-size: 2rem; }
.doc .updated { color: var(--muted); margin-top: 8px; }
.doc h2 { font-size: 1.125rem; margin-top: 32px; margin-bottom: 8px; }
.doc p, .doc li { color: var(--fg-2); }
.doc ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.doc form input { flex: 1 1 240px; width: auto; }

/* footer */
footer { border-top: 1px solid var(--border); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.875rem; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .grow { flex: 1; }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }
