:root {
  --ink: #172433;
  --muted: #647182;
  --navy: #294f72;
  --blue: #3f7cab;
  --pale: #eaf3f8;
  --line: #dce5eb;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(101, 169, 208, .18), transparent 30rem),
    linear-gradient(180deg, #f8fbfd 0%, #edf3f6 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  color: white; background: var(--navy); font-weight: 800; letter-spacing: -.05em;
}
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.stage-badge, .coming-soon {
  display: inline-flex; padding: 8px 12px; border-radius: 999px;
  color: var(--navy); background: var(--pale); font-size: 13px; font-weight: 700;
}

.page-shell { width: min(1120px, calc(100% - 40px)); margin: 56px auto 80px; }
.hero { max-width: 750px; margin-bottom: 42px; }
.hero.compact { margin-top: 15vh; }
.eyebrow, .label {
  margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(34px, 6vw, 64px); line-height: 1.03; letter-spacing: -.045em; }
.hero > p:last-child { max-width: 640px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 24px; }
.card {
  padding: 32px; border: 1px solid rgba(220, 229, 235, .9); border-radius: 26px;
  background: rgba(255, 255, 255, .88); box-shadow: 0 18px 60px rgba(43, 69, 91, .08);
  backdrop-filter: blur(12px);
}
.card-heading { display: flex; align-items: center; gap: 18px; }
.card h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.avatar, .icon-wrap {
  display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px;
  border-radius: 18px; color: white; background: linear-gradient(145deg, var(--blue), var(--navy));
  font-size: 18px; font-weight: 800;
}
.details { margin: 30px 0 0; }
.details div { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.referral-card { position: relative; overflow: hidden; }
.referral-card::after {
  content: ""; position: absolute; right: -75px; bottom: -90px; width: 220px; height: 220px;
  border-radius: 50%; background: var(--pale);
}
.referral-card .icon-wrap { margin-bottom: 50px; font-size: 30px; }
.referral-card > p:not(.label) { min-height: 72px; color: var(--muted); line-height: 1.6; }
.coming-soon { position: relative; z-index: 1; margin-top: 18px; }
.not-found { max-width: 620px; margin: 15vh auto; text-align: center; }
.not-found span { color: var(--blue); font-weight: 800; }
.not-found h1 { margin-top: 12px; font-size: 42px; }
.not-found p { color: var(--muted); }
footer { width: min(1120px, calc(100% - 40px)); margin: auto auto 28px; color: var(--muted); font-size: 13px; }
.preview-banner { padding: 9px 16px; color: #563d00; background: #fff3c4; text-align: center; font-size: 13px; font-weight: 750; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.preview-link { display: grid; gap: 10px; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.preview-link:hover { transform: translateY(-3px); box-shadow: 0 22px 65px rgba(43, 69, 91, .14); }
.preview-link span { color: var(--blue); font-size: 12px; font-weight: 800; }
.preview-link strong { font-size: 20px; }.preview-link small { color: var(--muted); line-height: 1.45; }
.button { display:inline-flex; border:0; border-radius:12px; padding:12px 18px; color:#fff; background:var(--navy); font-weight:700; text-decoration:none; cursor:pointer; }
.button.secondary { color:var(--navy); background:var(--pale); }.button.danger{background:#a83d3d}.auth-card{max-width:520px;margin:7vh auto}.auth-card h1{font-size:42px}.auth-card form,.lead-form{display:grid;gap:18px;margin-top:24px}label{display:grid;gap:7px;color:var(--muted);font-weight:650}input,textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:13px 14px;background:#fff;color:var(--ink);font:inherit}.alert{padding:12px 14px;border-radius:12px;background:#feecec;color:#8c2828}.form-layout{display:grid;grid-template-columns:1fr 1fr;gap:36px}.text-button{border:0;background:none;color:var(--blue);text-align:left;padding:0;cursor:pointer}.honeypot{position:absolute;left:-9999px}.copy-row{display:flex;gap:10px}.qr{width:180px;margin-top:24px}.metric{font-size:54px;font-weight:800;margin:20px 0 0}.table-card{margin-top:24px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--muted);font-size:12px;text-transform:uppercase}

@media (max-width: 760px) {
  .site-header { width: min(100% - 28px, 1120px); padding: 16px 0; }
  .page-shell { width: min(100% - 28px, 1120px); margin-top: 34px; }
  .stage-badge { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; border-radius: 22px; }
  .details div { display: block; }
  .details dd { margin-top: 6px; text-align: left; }
  .hero > p:last-child { font-size: 16px; }
  .form-layout { grid-template-columns: 1fr; }
  .copy-row { display: grid; }
  .preview-grid { grid-template-columns: 1fr; }
}
