/* CRJ Network marketing page */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f7f6;
  --surface: #ffffff;
  --text: #14201d;
  --muted: #52615d;
  --border: #dbe3e0;
  --accent: #0f766e;
  --accent-strong: #0b5f58;
  --accent-soft: #e2f3f0;
  --on-accent: #ffffff;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #a16207;
  --warn-soft: #fef3c7;
  --error: #b91c1c;
  --shadow: 0 1px 2px rgba(16, 24, 22, .06), 0 6px 20px rgba(16, 24, 22, .06);
  --radius: 14px;
  --focus: #2563eb;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1413;
    --bg-alt: #121c1a;
    --surface: #16211f;
    --text: #e7eeec;
    --muted: #9fb0ab;
    --border: #2a3835;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: #123a35;
    --on-accent: #06201d;
    --ok: #4ade80;
    --ok-soft: #12321f;
    --warn: #fbbf24;
    --warn-soft: #3a2c0b;
    --error: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
    --focus: #93c5fd;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-strong); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; fill: var(--accent); stroke: var(--accent); }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.topnav a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) {
  .topnav a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 22px; border-radius: 10px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Hero */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 400px at 85% -10%, var(--accent-soft), transparent 70%),
    radial-gradient(700px 360px at -10% 110%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero-inner { max-width: 860px; }
.eyebrow { color: var(--accent-strong); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 680px; margin-bottom: 32px; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 14px; border-radius: 10px;
  background: var(--accent-soft); fill: none; stroke: var(--accent-strong);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.steps p { color: var(--muted); margin: 0; }

/* Two column */
.two-col { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1.1fr 1fr; } }
.two-col p { color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

/* Dashboard mock */
.mock { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.mock-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-title { margin-left: 10px; font-weight: 600; font-size: .92rem; }
.mock-table { width: 100%; border-collapse: collapse; font-size: .9rem; table-layout: fixed; }
.mock-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.mock-table th:last-child, .mock-table td:last-child { width: 96px; }
.mock-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.bar { display: block; height: 9px; border-radius: 6px; background: var(--border); }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-wait { background: var(--warn-soft); color: var(--warn); }
.mock figcaption { padding: 10px 16px; font-size: .8rem; color: var(--muted); }

/* Pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plans-loading, .plans-error { grid-column: 1 / -1; color: var(--muted); }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); min-width: 0;
}
.plan.popular { border: 2px solid var(--accent); }
.plan-badge {
  position: absolute; top: -12px; left: 22px;
  background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .02em;
}
.plan-tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--accent-strong); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; margin-bottom: 8px; align-self: flex-start; }
.plan h3 { font-size: 1.25rem; margin-bottom: 6px; }
.plan-price { font-size: 2rem; font-weight: 800; margin: 4px 0 8px; }
.plan-price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan-blurb { color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: .95rem; }
.plan li { position: relative; padding-left: 24px; overflow-wrap: anywhere; }
.plan li::before {
  content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; width: 100%; }
.plan.custom { background: var(--bg-alt); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent-strong); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* Form */
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--error); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .95rem; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 52px 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .form { padding: 18px; }
  .form .btn { justify-self: stretch; }
  .mock-table th, .mock-table td { padding: 10px 10px; }
  .mock-table th:last-child, .mock-table td:last-child { width: 84px; }
}
