/* =========================================================
   Global Concepts Media Operating System
   Version 5.5.2
   File: style.css
   Purpose: Dashboard + Business Snapshot styling
   ========================================================= */

:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #152033;
  --muted: #667085;
  --border: #d9e2ef;
  --blue: #075faa;
  --blue-dark: #034f91;
  --blue-light: #e8f2ff;
  --success: #137333;
  --shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.control-card,
.dashboard-card,
.developer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.control-card {
  padding: 24px;
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #c8d3e1;
  border-radius: 12px;
  font-size: 16px;
}

input:focus {
  outline: 3px solid rgba(7, 95, 170, 0.18);
  border-color: var(--blue);
}

button {
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--blue-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.status-bar {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--blue-light);
  border-radius: 12px;
  color: var(--text);
}

.status-bar strong {
  display: block;
  margin-bottom: 2px;
}

.status-bar span {
  color: var(--muted);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.snapshot-card {
  min-height: 138px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshot-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

#snapshotReadiness {
  color: var(--success);
  font-size: 34px;
}

.dashboard-card {
  padding: 26px;
  margin-bottom: 22px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.dashboard-header h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.tab-button {
  padding: 11px 16px;
  border-radius: 999px;
  background: #edf4fc;
  color: var(--blue);
}

.tab-button.active,
.tab-button:hover {
  background: var(--blue);
  color: #ffffff;
}

.report-output {
  background: #fbfdff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.empty-state,
.report-loading,
.report-error {
  color: var(--muted);
  font-size: 16px;
}

.rendered-report {
  max-width: 920px;
}

.rendered-report h1 {
  margin-bottom: 24px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.rendered-report h2 {
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.rendered-report h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.rendered-report p {
  color: #28364d;
  font-size: 16px;
}

.rendered-report ul {
  margin: 10px 0 18px;
  padding-left: 22px;
}

.rendered-report li {
  margin-bottom: 8px;
  color: #28364d;
}

.developer-card {
  padding: 22px;
}

.developer-card h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.developer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.developer-grid div {
  padding: 16px;
  background: #fbfdff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.developer-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.developer-grid strong {
  font-size: 16px;
}

/* =========================================================
   Business Snapshot Entry Page
   ========================================================= */

.snapshot-page {
  min-height: 100vh;
  padding: 56px 0 80px;
  background:
    radial-gradient(circle at top left, rgba(7, 95, 170, 0.14), transparent 34%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
}

.snapshot-container {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
}

.snapshot-hero {
  padding: 58px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.snapshot-hero h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 20px;
}

.snapshot-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
  padding: 24px;
  background: #fbfdff;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snapshot-form label {
  margin-bottom: 0;
}

.snapshot-form label span {
  color: var(--muted);
  font-weight: 700;
}

.snapshot-form input {
  min-height: 54px;
}

.snapshot-button {
  width: 100%;
  min-height: 58px;
  font-size: 18px;
}

.snapshot-error {
  margin: 0;
  color: #b42318;
  font-weight: 800;
}

.snapshot-note {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .snapshot-grid,
  .developer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  button {
    min-height: 48px;
  }

  .snapshot-hero {
    padding: 36px;
  }
}

@media (max-width: 560px) {
  .app-shell,
  .snapshot-container {
    width: min(100% - 24px, 1180px);
  }

  .app-shell {
    padding-top: 28px;
  }

  .snapshot-page {
    padding: 24px 0 48px;
  }

  .snapshot-hero {
    padding: 26px;
    border-radius: 20px;
  }

  .snapshot-grid,
  .developer-grid {
    grid-template-columns: 1fr;
  }

  .control-card,
  .dashboard-card,
  .developer-card,
  .snapshot-card {
    border-radius: 14px;
  }

  .rendered-report h1 {
    font-size: 30px;
  }

  .snapshot-hero h1 {
    font-size: 38px;
  }

  .hero-text {
    font-size: 18px;
  }
}
