@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@800,700,500&f[]=satoshi@700,500,400&display=swap');

:root {
  --bg: #F5F3F0;
  --surface: #FFFFFF;
  --surface-2: #FAFAF8;
  --border: #EDEAE5;
  --border-strong: #D6D2CC;
  --navy: #182838;
  --navy-2: #1e3245;
  --blue: #0542BF;
  --blue-light: #2860E8;
  --blue-dim: rgba(5, 66, 191, 0.08);
  --blue-dim-2: rgba(5, 66, 191, 0.15);
  --text: #182838;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;
  --success: #16A34A;
  --success-dim: rgba(22, 163, 74, 0.1);
  --warn: #D97706;
  --warn-dim: rgba(217, 119, 6, 0.1);
  --danger: #DC2626;
  --danger-dim: rgba(220, 38, 38, 0.1);
  --info-dim: rgba(5, 66, 191, 0.08);
  --font-heading: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  --shadow: 0 4px 24px rgba(24, 40, 56, 0.08);
  --shadow-md: 0 12px 40px rgba(24, 40, 56, 0.11);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); text-decoration: underline; }

/* Layout */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.site-logo img {
  height: 22px;
  width: auto;
  display: block;
  /* invert to white for dark header */
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
}

/* ---- Hero ---- */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}

.hero h1 span {
  background: linear-gradient(135deg, #4A90FF, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Page grid ---- */
.pages-section { padding: 48px 0 80px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  margin-top: 40px;
}

.section-header:first-child { margin-top: 0; }

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.page-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #4A90FF);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.page-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.page-card:hover::before { opacity: 1; }

.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-bottom: 12px;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid var(--blue-dim-2);
}

.card-tag.tag--audit  { color: var(--blue); background: var(--blue-dim); border-color: var(--blue-dim-2); }
.card-tag.tag--report { color: var(--warn); background: var(--warn-dim); border-color: rgba(217,119,6,0.2); }
.card-tag.tag--proposal { color: var(--navy); background: rgba(24,40,56,0.07); border-color: rgba(24,40,56,0.12); }
.card-tag.tag--misc { color: var(--text-muted); background: rgba(107,114,128,0.08); border-color: rgba(107,114,128,0.15); }
.card-tag.tag--growth { color: var(--success); background: var(--success-dim); border-color: rgba(22,163,74,0.2); }

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
}

.card-link:hover { text-decoration: underline; }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
}

.empty-state strong { color: var(--text); display: block; margin-bottom: 6px; }

/* ---- Password Gate ---- */
.pw-gate {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.pw-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.pw-box img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 28px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.pw-box h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.pw-box p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
}

.pw-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s;
  text-align: center;
  letter-spacing: 0.05em;
}

.pw-input::placeholder { color: rgba(255,255,255,0.25); }
.pw-input:focus { border-color: rgba(5,66,191,0.6); }

.pw-btn {
  width: 100%;
  padding: 12px 24px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.pw-btn:hover { background: var(--blue-light); }
.pw-btn:active { transform: scale(0.98); }

.pw-error {
  font-size: 0.8rem;
  color: #F87171;
  margin-top: 10px;
  min-height: 18px;
}

/* ---- Individual page layout ---- */
.page-header {
  background: var(--navy);
  padding: 52px 0 44px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-breadcrumb { display: none; } /* hidden — no back nav on individual pages */

.page-header .card-tag {
  background: rgba(5,66,191,0.2);
  border-color: rgba(5,66,191,0.35);
  color: #7EB3FF;
  margin-bottom: 14px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #fff;
}

.page-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
}

.page-meta-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.meta-item strong { color: rgba(255,255,255,0.75); }

/* Content area */
.page-content {
  padding: 48px 0 80px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}

.sidebar-card h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sidebar-card ul {
  list-style: none;
  font-size: 0.875rem;
}

.sidebar-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.sidebar-card li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-card li strong { color: var(--text); }

/* Score */
.score-display {
  text-align: center;
  padding: 12px 0;
}

.score-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--blue), #4A90FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* Audit sections */
.audit-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}

.audit-section h2 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.section-icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: var(--blue-dim);
  flex-shrink: 0;
}

/* Findings */
.finding {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.finding:last-child { border-bottom: none; padding-bottom: 0; }
.finding:first-of-type { padding-top: 0; }

.finding-indicator {
  width: 4px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 3px;
  min-height: 44px;
}

.indicator--good { background: var(--success); }
.indicator--warn { background: var(--warn); }
.indicator--bad  { background: var(--danger); }
.indicator--info { background: var(--blue); }

.finding-body { flex: 1; }

.finding-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.finding-detail {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Pills */
.pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.pill--good { background: var(--success-dim); color: var(--success); }
.pill--warn { background: var(--warn-dim); color: var(--warn); }
.pill--bad  { background: var(--danger-dim); color: var(--danger); }

/* Footer */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
}

/* Responsive */
@media (max-width: 600px) {
  .site-header .container { gap: 12px; }
  .hero { padding: 56px 0 48px; }
  .page-header { padding: 40px 0 32px; }
  .audit-section { padding: 20px; }
  .pages-section { padding: 32px 0 64px; }
}
