:root {
  --bg: #ffffff;
  --panel: #fff;
  --text: #101828;
  --muted: #667085;
  --line: #e6e8ef;
  --soft: #f2f4f7;
  --accent: #d63a3a;
  --accent-dark: #b92f2f;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

body.inno-focus-page {
  background: #ffffff;
  color: var(--text);
}

/* Hero */
.focus-hero {
  background: #ffffff;
}

.focus-hero h1 {
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #111;
  text-align: center;
}

.focus-hero p {
  max-width: 42rem;
  margin: 0.9rem auto 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  text-align: center;
}

/* Main layout
   Uses the shared site .container width from styles.css */
.focus-main {
  padding-top: 0.25rem;
  padding-bottom: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .focus-main {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.focus-main .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.focus-main .card-h {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.focus-main .card-h .title {
  font-weight: 900;
  font-size: 14px;
  margin: 0;
}

.focus-main .card-h .desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.focus-main .card-b {
  padding: 14px 16px 16px;
}

/* Toolbar */
.focus-main .toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.focus-main button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, filter 0.12s ease, opacity 0.12s ease;
  font: inherit;
}

.focus-main button:hover {
  transform: translateY(-1px);
}

.focus-main button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.focus-main button.primary {
  border-color: rgba(214, 58, 58, 0.35);
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(214, 58, 58, 0.18);
}

/* Groups */
.focus-main .groups {
  display: grid;
  gap: 14px;
}

.focus-main .section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.focus-main .section-h {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.focus-main .section-h h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.focus-main .section-h p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  max-width: 85ch;
}

.focus-main .count {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
  font-weight: 850;
}

.focus-main .situations {
  display: grid;
  grid-template-columns: 1fr;
}

.focus-main .situation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.focus-main .situations .situation:last-child {
  border-bottom: none;
}

.focus-main .situation:hover {
  background: rgba(214, 58, 58, 0.03);
}

.focus-main .situation input {
  margin-top: 3px;
  accent-color: var(--accent);
  transform: scale(1.05);
  flex: 0 0 auto;
}

.focus-main .situation-body {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.focus-main .situation .title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #1f2937;
}

.focus-main .situation.selected {
  background: rgba(214, 58, 58, 0.05);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Tool badges only */
.focus-main .badge {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
  font-weight: 850;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: auto;
  line-height: 1.2;
}

.focus-main .badge.good {
  border-color: rgba(18, 183, 106, 0.25);
  background: rgba(18, 183, 106, 0.1);
  color: #067647;
}

.focus-main .badge.warn {
  border-color: rgba(247, 144, 9, 0.25);
  background: rgba(247, 144, 9, 0.1);
  color: #b54708;
}

.focus-main .badge.bad {
  border-color: rgba(240, 68, 56, 0.25);
  background: rgba(240, 68, 56, 0.1);
  color: #b42318;
}

/* Results */
.focus-main .resultTop {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(214, 58, 58, 0.06), rgba(255, 255, 255, 0));
}

.focus-main .big {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.focus-main .sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.focus-main .rank {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.focus-main .rankItem {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.focus-main .rankTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  font-weight: 850;
}

.focus-main .rankTop span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.focus-main .bar {
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  margin-top: 8px;
}

.focus-main .bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(214, 58, 58, 0.95), rgba(240, 107, 107, 0.95));
}

.focus-main details {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}

.focus-main details summary {
  cursor: pointer;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.focus-main .breakdown {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.focus-main .rowWhy {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.focus-main .rowWhy .rowTitle {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 850;
  color: #101828;
}

.focus-main .rowWhy .rowText {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.focus-main .lead-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
  font: inherit;
}

.focus-main .lead-input:focus {
  border-color: rgba(214, 58, 58, 0.4);
  box-shadow: 0 0 0 4px rgba(214, 58, 58, 0.1);
}

.focus-main .lead-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* === REMOVE EXTRA TOP GAP IN SECTIONS === */
.focus-main .section {
  padding-top: 0; /* kill inherited top spacing */
}

/* tighten header spacing */
.focus-main .section-h {
  padding: 12px 14px 10px; /* was 16px+ */
}

/* remove extra space before first section */
.focus-main .groups {
  margin-top: 0;
}

@media (max-width: 640px) {
  .focus-hero h1 {
    font-size: 2.1rem;
  }

  .focus-main .situation-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .focus-main .badge {
    align-self: flex-start;
  }
}

@media print {
  .focus-main button {
    display: none !important;
  }

  body.inno-focus-page {
    background: #fff;
  }

  .focus-main {
    grid-template-columns: 1fr;
  }

  .focus-main .card {
    box-shadow: none;
  }

  .focus-main .bar {
    display: none;
  }
}

