:root {
  --bg: #faf9f6;
  --bg-alt: #f1f5f3;
  --bg-tint-indigo: #f0f2fe;
  --bg-tint-teal: #eefaf6;
  --surface: #ffffff;

  --ink: #10151f;
  --ink-soft: #384152;
  --muted: #667085;
  --muted-2: #98a2b3;

  --border: #e6e8ec;
  --border-soft: #eef0f3;

  --brand: #2947f2;
  --brand-dark: #1a2fa8;
  --brand-tint: #eef1fe;

  --teal: #0e9f86;
  --teal-tint: #e6f7f3;

  --coral: #ff6b4a;
  --coral-dark: #e8532f;
  --coral-tint: #fff0ec;

  --gold: #f2a93b;
  --gold-tint: #fef3e2;

  --violet: #7c5cf6;
  --violet-tint: #f2effe;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgba(16, 21, 31, 0.04);
  --shadow-md: 0 12px 28px rgba(16, 21, 31, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 21, 31, 0.12);

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5em; }
p { color: var(--muted); margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }

.topbar {
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); display: inline-block; }
.topbar nav a { color: var(--muted); font-size: 14px; font-weight: 600; margin-left: 20px; }
.topbar nav a:hover { color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-tint); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}

.hero { padding: 72px 0 24px; text-align: center; }
.hero h1 { font-size: 40px; max-width: 760px; margin: 0 auto .4em; }
.hero p.lede { max-width: 560px; margin: 0 auto 1.2em; font-size: 17px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

form.audit-form { max-width: 640px; margin: 32px auto 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=url], input[type=password] {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14.5px; font-family: var(--font-body); background: var(--bg);
}
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; background: var(--surface); }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: var(--shadow-sm); width: 100%;
}
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); width: auto; }

.error-box { background: var(--coral-tint); color: var(--coral-dark); border: 1px solid #ffd6c9; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; }

/* Score */
.score-wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.score-circle {
  width: 128px; height: 128px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: var(--bg-alt); border: 8px solid var(--border);
  flex-shrink: 0;
}
.score-circle .num { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--ink); }
.score-circle .den { font-size: 12px; color: var(--muted-2); }
.score-band { display: inline-block; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-bottom: 8px; }

.breakdown-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.breakdown-row .label { width: 190px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); flex-shrink: 0; }
.bar-track { flex: 1; height: 9px; border-radius: 99px; background: var(--border-soft); overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: 99px; }
.breakdown-row .val { width: 54px; text-align: right; font-size: 12.5px; color: var(--muted); flex-shrink: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.platform-card { padding: 20px; }
.platform-card .ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.platform-card h3 { font-size: 16px; margin: 0; }
.status-pill { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.status-pill.ok { background: var(--teal-tint); color: var(--teal); }
.status-pill.limited, .status-pill.blocked { background: var(--gold-tint); color: #a7700f; }
.status-pill.error { background: var(--coral-tint); color: var(--coral-dark); }
.status-pill.not_provided { background: var(--border-soft); color: var(--muted-2); }
.platform-card ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.metric-row { font-size: 13px; color: var(--ink-soft); margin: 2px 0; }
.metric-row b { color: var(--ink); }

.phase-card { padding: 22px; margin-bottom: 14px; border-left: 4px solid var(--brand); }
.phase-card h3 { font-size: 16px; margin-bottom: 8px; }
.phase-card ul { margin: 0; padding-left: 18px; }
.phase-card li { margin-bottom: 6px; font-size: 14px; color: var(--ink-soft); }

.upsell { background: var(--navy, #10151f); background: linear-gradient(135deg, #10151f, #1a2140); color: #fff; border-radius: var(--radius-lg); padding: 36px; text-align: center; margin-top: 40px; }
.upsell h2 { color: #fff; }
.upsell p { color: #c7cbe0; }
.upsell .btn { width: auto; background: #fff; color: var(--ink); }
.upsell .btn:hover { background: #eee; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
table.admin-table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.admin-table tr:hover { background: var(--bg-alt); }

footer.site-footer { padding: 32px 0; text-align: center; color: var(--muted-2); font-size: 13px; border-top: 1px solid var(--border-soft); margin-top: 48px; }
