﻿/* Chirpy Heat / NetMax brand — inspired by chirpyheat.com */
:root {
  --ch-navy: #000f47;
  --ch-navy-soft: #0a1445;
  --ch-purple: #88449b;
  --ch-purple-light: #a86bbe;
  --ch-lavender: #b9a8e8;
  --ch-peach: #fff7f5;
  --ch-peach-deep: #fff0eb;
  --ch-white: #ffffff;
  --ch-text: #000f47;
  --ch-muted: #69727d;
  --ch-border: #e8e0ec;

  --bg: var(--ch-peach);
  --surface: var(--ch-white);
  --sidebar: var(--ch-navy);
  --sidebar-text: rgba(255, 255, 255, 0.78);
  --text: var(--ch-text);
  --muted: var(--ch-muted);
  --border: var(--ch-border);
  --accent: var(--ch-purple);
  --accent-dark: #6f3580;
  --accent-light: var(--ch-lavender);

  --stage-understand: #b9a8e8;
  --stage-respond: #a86bbe;
  --stage-plan: #88449b;
  --stage-deliver: #000f47;

  --green: #2d8a5e;
  --amber: #c4842d;
  --red: #c4454d;
  --shadow: 0 10px 30px rgba(0, 15, 71, 0.08);
  --shadow-lg: 0 18px 40px rgba(0, 15, 71, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--ch-navy);
  letter-spacing: -0.02em;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.25rem; }

p { color: var(--muted); line-height: 1.65; }

/* ── App shell ── */
.app-shell {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 1.35rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.15rem 0.35rem;
}

/* Official logo uses navy “Net” (#000f47) — same as the sidebar. Light plate = legible on dark chrome. */
.logo-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--ch-white);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.logo-plate-hero {
  width: fit-content;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.netmax-logo {
  display: block;
  width: 100%;
  max-width: 156px;
  height: auto;
  object-fit: contain;
}

.netmax-logo-hero {
  max-width: 200px;
}

.brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
  padding: 0 0.35rem;
}

.org-pill {
  margin: 0 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.nav { display: flex; flex-direction: column; gap: 0.2rem; }

.nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav a.active {
  background: var(--ch-purple);
  color: #fff;
  box-shadow: 0 4px 14px rgba(136, 68, 155, 0.35);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 0.75rem 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.sidebar-footer .chirpy-mark {
  color: var(--ch-lavender);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.breadcrumb strong { color: var(--ch-navy); }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: var(--ch-peach);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ch-navy);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ch-purple), var(--ch-lavender));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ch-navy);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-logout:hover {
  background: var(--ch-peach);
  border-color: var(--ch-purple);
  color: var(--accent-dark);
}

.content {
  padding: 1.75rem;
  max-width: 1280px;
}

/* ── Layout grids ── */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1100px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card-accent-top {
  border-top: 4px solid var(--ch-purple);
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ch-lavender), var(--ch-purple));
}

.stat-card .stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ch-peach);
  color: var(--ch-purple);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.stat-card .stat-icon svg { width: 20px; height: 20px; }

.stat-card .label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.stat-card .value {
  font-size: 1.85rem;
  font-weight: 800;
  margin-top: 0.2rem;
  color: var(--ch-navy);
  letter-spacing: -0.02em;
}

/* ── Module cards ── */
.module-card {
  cursor: default;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  border-left: 4px solid transparent;
}

.module-card.available {
  cursor: pointer;
  border-left-color: var(--ch-purple);
}

.module-card.available:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ch-lavender);
}

.module-card:not(.available) {
  opacity: 0.7;
  background: #faf8fc;
}

.module-card:not(.available) h3 { color: var(--muted); }

.module-card .module-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ch-peach-deep), #f3eaf8);
  color: var(--ch-purple);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.module-card .module-icon svg { width: 22px; height: 22px; }

.module-card h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-available {
  background: #f3eaf8;
  color: var(--ch-purple);
}

.badge-soon {
  background: #f0f2f6;
  color: var(--muted);
}

/* Stage badges — Chirpy 4-stage colours */
.stage-badge { font-weight: 700; }
.stage-understand { background: #ede8f8; color: #5a4d8a; }
.stage-respond { background: #f0e0f4; color: #7a3d8c; }
.stage-plan { background: #ead4f0; color: var(--ch-purple); }
.stage-deliver { background: #e8eaf3; color: var(--ch-navy); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.72rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ch-purple);
  color: #fff;
  box-shadow: 0 4px 14px rgba(136, 68, 155, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 18px rgba(136, 68, 155, 0.38);
}

.btn-secondary {
  background: var(--ch-peach-deep);
  color: var(--ch-navy);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: #ffe8e0; }

.btn-block { width: 100%; }

/* ── Login ── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-hero {
  background: var(--ch-navy);
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--ch-purple);
  opacity: 0.25;
}

.login-hero .brand-block { position: relative; z-index: 1; gap: 0.85rem; }
.login-hero .brand-tagline { color: rgba(255, 255, 255, 0.75); font-size: 0.75rem; max-width: 320px; padding: 0; }
.login-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 380px; position: relative; z-index: 1; }

.login-panel {
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--ch-peach);
}

.login-card {
  width: min(440px, 92vw);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.login-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.login-form .field:last-of-type {
  margin-bottom: 0;
}

.login-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.login-section h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.login-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.login-actions .btn-primary {
  flex: 1;
}

.delegate-card {
  background: var(--ch-peach);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.delegate-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ch-navy);
  margin-bottom: 0.75rem;
}

.delegate-meta {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.delegate-meta .label {
  color: var(--muted);
  font-size: 0.82rem;
}

.delegate-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.delegate-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.delegate-option:has(input:checked) {
  border-color: var(--ch-purple);
  background: #faf6fc;
}

.delegate-option input {
  margin-top: 0.2rem;
  accent-color: var(--ch-purple);
}

.delegate-option span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  cursor: pointer;
}

.checkbox-label input {
  margin-top: 0.2rem;
  accent-color: var(--ch-purple);
}

@media (max-width: 860px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { padding: 2rem; min-height: 220px; }
}

/* ── Forms ── */
.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--ch-navy);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ch-purple);
  box-shadow: 0 0 0 3px rgba(136, 68, 155, 0.15);
}

/* ── Assessment ── */
.progress-wrap { margin-bottom: 1.5rem; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.progress-bar {
  height: 10px;
  background: #ede8f4;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ch-lavender), var(--ch-purple));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.question-card { max-width: 820px; }

.domain-label {
  font-size: 0.8rem;
  color: var(--ch-purple);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.answers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.answer-btn {
  border: 2px solid var(--border);
  background: #fff;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ch-navy);
  transition: all 0.15s;
  font-family: inherit;
}

.answer-btn:hover {
  border-color: var(--ch-lavender);
  background: var(--ch-peach);
}

.answer-btn.selected {
  border-color: var(--ch-purple);
  background: #f3eaf8;
  color: var(--ch-purple);
  box-shadow: 0 2px 10px rgba(136, 68, 155, 0.15);
}

.assessment-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.stage-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.stage-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.stage-step.active {
  border-color: var(--ch-purple);
  background: #f3eaf8;
  color: var(--ch-purple);
  font-weight: 700;
}

.stage-step.done {
  border-color: var(--ch-lavender);
  color: var(--ch-navy);
}

.section-intro-card {
  max-width: 760px;
}

.profile-card {
  max-width: 820px;
}

.gate-hint {
  font-size: 0.92rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ch-peach);
  border-radius: var(--radius);
}

.comment-field {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.comment-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ch-navy);
  margin-bottom: 0.4rem;
}

.comment-field textarea {
  width: 100%;
  min-height: 88px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  resize: vertical;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.comment-field textarea:focus {
  outline: none;
  border-color: var(--ch-purple);
  box-shadow: 0 0 0 3px rgba(136, 68, 155, 0.15);
}

.comment-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.question-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Results ── */
.rag-green { color: var(--green); }
.rag-amber { color: var(--amber); }
.rag-red { color: var(--red); }

.matrix-wrap {
  overflow-x: auto;
}

.assessment-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

.assessment-matrix th,
.assessment-matrix td {
  padding: 0.65rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.assessment-matrix thead th {
  background: var(--ch-peach);
  color: var(--ch-navy);
  font-weight: 700;
}

.assessment-matrix tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ch-navy);
  background: #fafbfd;
}

.assessment-matrix tfoot th,
.assessment-matrix tfoot td {
  background: #f6f3fb;
  border-top: 2px solid var(--border);
}

.matrix-cell {
  min-width: 4.5rem;
  height: 2.75rem;
  border-radius: 8px;
}

.matrix-green { background: #d9f2e5; }
.matrix-amber { background: #fdeacc; }
.matrix-red { background: #fde0e0; }

.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.matrix-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.matrix-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  display: inline-block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.score-hero {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.maturity-ladder {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.maturity-step {
  flex: 1;
  min-width: 100px;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--ch-peach-deep);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  border: 2px solid transparent;
  font-weight: 600;
}

.maturity-step.active {
  background: var(--ch-purple);
  color: #fff;
  border-color: var(--ch-purple);
  box-shadow: 0 4px 14px rgba(136, 68, 155, 0.3);
}

.maturity-step.next-target {
  border-color: var(--ch-purple);
  background: #f3eaf8;
  color: var(--ch-purple);
}

/* ── Analysis ── */
.analysis-screen {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.analysis-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #ede8f4;
  border-top-color: var(--ch-purple);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.analysis-step {
  font-size: 1.25rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.4s;
}

.analysis-step.visible {
  opacity: 1;
  color: var(--ch-navy);
  font-weight: 700;
}

/* ── Lists & roadmap ── */
.action-list { list-style: none; padding: 0; margin: 0; }

.action-list li {
  margin-bottom: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--ch-peach);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--ch-purple);
}

.roadmap-section h3 {
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ch-peach-deep);
}

.roadmap-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

/* ── Partnership ── */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}

.service-card:hover { border-color: var(--ch-lavender); }

.service-card.selected {
  border-color: var(--ch-purple);
  background: #f3eaf8;
  box-shadow: 0 4px 16px rgba(136, 68, 155, 0.12);
}

.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-header p { margin: 0; }

.muted { color: var(--muted); }

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.section-title svg {
  width: 22px;
  height: 22px;
  color: var(--ch-purple);
}
