/* Deepki Index 2026 Benchmark — stylesheet */

:root {
  --primary: #00A19A;
  --primary-dark: #00504b;
  --neutral-0: #ffffff;
  --neutral-50: #f9f9f9;
  --neutral-100: #f0f0f0;
  --neutral-200: #e0e0e0;
  --neutral-500: #666;
  --neutral-700: #333;
  --q1: #10b981;
  --q2: #3b82f6;
  --q3: #f59e0b;
  --q4: #ef4444;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--neutral-700);
  background: var(--neutral-50);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--neutral-700);
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.dk-logo {
  width: 40px;
  height: 40px;
}

.brand-product {
  line-height: 1.2;
}

.brand-product small {
  display: block;
  font-size: 0.75em;
  font-weight: 400;
  color: var(--neutral-500);
}

/* Hero */
.hero {
  margin-bottom: 40px;
}

.hero .kicker {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 16px 0;
  color: var(--neutral-700);
}

.hero p {
  font-size: 1.125rem;
  color: var(--neutral-500);
  margin: 0;
  max-width: 700px;
}

/* Cards */
.card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.card.form-card {
  border: 1px solid var(--primary);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--neutral-700);
}

.field input,
.field select {
  padding: 10px 12px;
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 161, 154, 0.1);
}

.field .help {
  font-size: 0.875rem;
  color: var(--neutral-500);
  margin-top: 6px;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  accent-color: var(--primary);
}

.kpi-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 161, 154, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(0, 161, 154, 0.1);
}

/* Unlock button */
.unlock-wrap {
  text-align: center;
  padding: 24px;
  background: rgba(0, 161, 154, 0.05);
  border-radius: 8px;
  margin-bottom: 20px;
}

.unlock-btn {
  background: var(--primary);
  color: var(--neutral-0);
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.unlock-btn:hover {
  background: var(--primary-dark);
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--neutral-200);
  padding: 40px 0 20px;
  margin-top: auto;
}

.foot-top {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 16px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #00504b;
}

.fb-txt {
  line-height: 1.2;
  font-size: 0.95rem;
}

.fb-txt small {
  display: block;
  font-size: 0.75em;
  font-weight: 400;
  color: var(--neutral-500);
}

.foot-rule {
  height: 1px;
  background: var(--neutral-200);
  margin-bottom: 16px;
}

.foot-fine {
  font-size: 0.875rem;
  color: var(--neutral-500);
  text-align: center;
}

.foot-fine a {
  color: var(--primary);
  text-decoration: none;
}

.foot-fine a:hover {
  text-decoration: underline;
}

/* Print */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .kpi-fields {
    grid-template-columns: 1fr !important;
  }

  .metric-line {
    grid-template-columns: 1fr;
  }

  .bm-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bm-label {
    font-weight: 600;
  }

  .foot-top {
    flex-direction: column;
    gap: 12px;
  }
}

/* HubSpot Modal */
.hs-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.hs-modal-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hs-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--neutral-500);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-modal-close:hover {
  color: var(--neutral-700);
}

.hs-modal-title {
  margin: 0 32px 16px 0;
  font-size: 1.25rem;
  color: var(--neutral-700);
}

/* Form header */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.btn-add-asset {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-add-asset:hover {
  background: var(--primary-dark);
}

.btn-add-asset:disabled {
  background: var(--neutral-200);
  cursor: not-allowed;
}

/* Asset form */
.asset-form {
  border: 1px solid var(--neutral-200);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  background: var(--neutral-50);
}

.asset-header {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.asset-name {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
}

.asset-name:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 161, 154, 0.1);
}

.btn-remove-asset {
  background: #ef4444;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-remove-asset:hover {
  background: #dc2626;
}

.asset-kpi-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .asset-kpi-fields {
    grid-template-columns: 1fr;
  }
}

.btn-validate {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.btn-validate:hover {
  background: var(--primary-dark);
}

/* Benchmark cards (grouped bar chart per KPI) */
.bm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.bm-card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  padding: 20px;
}

.bm-card-head h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  color: var(--neutral-700);
}

.bm-card-desc {
  margin: 0 0 16px 0;
  font-size: 0.875rem;
  color: var(--neutral-500);
}

.bm-asset-chart {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--neutral-200);
}

.bm-asset-chart:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.bm-chart-wrap {
  position: relative;
  height: 220px;
  margin-bottom: 10px;
}

.bm-asset-line {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: var(--neutral-50);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--neutral-700);
}

.bm-methodology {
  margin: 20px 0 0 0;
  font-size: 0.8rem;
  color: var(--neutral-500);
}

/* Cross-sell promo panel (Stranded-risk Asset Calculator, white paper) */
.promo-panel {
  margin-top: 20px;
  padding: 32px;
  background: rgba(0, 161, 154, 0.05);
  border: 1px solid rgba(0, 161, 154, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.promo-text {
  flex: 0 0 auto;
  max-width: 360px;
}

.promo-panel h3 {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--neutral-700);
}

.promo-panel .btn-pill {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.promo-panel .btn-pill:hover {
  background: var(--primary);
  color: white;
}

.promo-image {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

@media (max-width: 768px) {
  .promo-panel {
    flex-direction: column;
    padding: 24px 20px;
    text-align: center;
  }

  .promo-text {
    max-width: none;
  }

  .promo-panel h3 {
    font-size: 1.1rem;
  }
}

.kpi-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.kpi-badge-q1 { background: rgba(16, 185, 129, 0.12); color: var(--q1); }
.kpi-badge-q2 { background: rgba(59, 130, 246, 0.12); color: var(--q2); }
.kpi-badge-q3 { background: rgba(245, 158, 11, 0.12); color: var(--q3); }
.kpi-badge-q4 { background: rgba(239, 68, 68, 0.12); color: var(--q4); }

.kpi-badge-muted {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--neutral-100);
  color: var(--neutral-500);
}

.kpi-error {
  color: var(--q4);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Field validation */
.field-error {
  color: var(--q4);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.field.has-error input {
  border-color: var(--q4);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.field.has-error .field-error {
  display: block;
}
