/* Imports */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* Base Styles */
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.page-shell {
  min-height: 100vh;
  padding-bottom: 72px;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 10px;
  border-radius: 12px;
  color: #fff;
  
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto;
}

.hero h1 {
 font-size: 2.2rem;
    font-weight: 800;
    color: black;
    letter-spacing: -0.02em;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: black;
  font-size: 16px;
  line-height: 1.7;
}

.hero-eyebrow {
  color: #bfdbfe;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.hero-orbit-one {
  width: 460px;
  height: 460px;
  top: -290px;
  left: -100px;
}

.hero-orbit-two {
  width: 560px;
  height: 560px;
  right: -180px;
  bottom: -420px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.trust-badges span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #000000;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 600;
}

/* Workspace & Layout Containers */
.workspace {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 24px 0;
}

.card,
.projection-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 32px;
}

.section-heading,
.results-intro,
.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

h2,
h3 {
  margin: 0;
  font-family: 'Space Grotesk', Arial, sans-serif;
  color: #172033;
  line-height: 1.2;
}

h2 {
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.6px;
  text-transform: none;
}

h3 {
  font-size: 18px;
}

.heading-note {
  padding-top: 19px;
  color: #64748b;
  font-size: 13px;
}

/* Industry Selection Grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.industry-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  color: #172033;
  background: #fff;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.industry-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 7px 15px rgba(37, 99, 235, 0.1);
}

.industry-card.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.industry-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 20px;
}

.industry-card.active .industry-icon {
  color: #fff;
  background: #2563eb;
}

.industry-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.industry-ltv {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
}

/* Form Controls & Inputs */
.city-field {
  margin-top: 27px;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 9px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
}

.field label span {
  color: #64748b;
  font-weight: 500;
}

.field input[type='text'] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #172033;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input[type='text']:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px #dbeafe;
  outline: none;
}

.helper {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.slider-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}

.slider-label-row label {
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
}

output {
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
}

input[type='range'] {
  width: 100%;
  height: 5px;
  margin: 0;
  border-radius: 99px;
  accent-color: #2563eb;
  cursor: pointer;
}

.period-field {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid #e2e8f0;
}

.period-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.period-button,
.button {
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #334155;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.period-button {
  min-width: 105px;
  padding: 11px 17px;
}

.period-button:hover,
.period-button.active {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
}

/* Callout / Notice Components */
.notice-card {
  display: flex;
  gap: 16px;
  margin-bottom: 42px;
  padding: 22px 25px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
}

.notice-icon {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2563eb;
  font-family: Georgia, serif;
  font-weight: 700;
}

.notice-card h2 {
  font-size: 17px;
}

.notice-card p:last-child {
  max-width: 880px;
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

/* Results Display */
.results-section {
  margin-bottom: 40px;
}

.results-intro {
  align-items: end;
  margin-bottom: 23px;
}

.results-intro h2 {
  font-size: clamp(24px, 4vw, 31px);
}

#scenario-label {
  color: #2563eb;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  padding: 10px 14px;
}

.secondary-button:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.text-button {
  border-color: transparent;
  color: #64748b;
  background: transparent;
}

.text-button:hover {
  color: #dc2626;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.result-card {
  min-height: 148px;
  padding: 22px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.13);
}

.result-card.featured {
  background: #2563eb;
  border-color: #2563eb;
}

.result-label,
.result-subtitle {
  display: block;
  letter-spacing: 1.2px;
  font-size: 10px;
  font-weight: 700;
}

.result-label {
  color: #2563eb;
}

.featured .result-label,
.featured .result-subtitle {
  color: #bfdbfe;
}

.result-card strong {
  display: block;
  overflow: hidden;
  margin: 18px 0 8px;
  color: #172033;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured strong {
  color: #fff;
}

.result-subtitle {
  color: #64748b;
  font-size: 9px;
}

/* Detail & Status Components */
.detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 16px;
}

.detail-card,
.chart-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.status-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
}

.status-row h3 {
  font-size: 20px;
}

.status-row p:last-child {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 13px;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  color: #15803d;
  background: #dcfce7;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.warning {
  color: #a16207;
  background: #fef3c7;
}

.status-pill.negative {
  color: #b91c1c;
  background: #fee2e2;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  padding-top: 23px;
}

.detail-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
}

.detail-grid strong {
  display: block;
  margin-top: 4px;
  color: #172033;
  font-size: 14px;
}

/* Charts & SVGs */
.chart-heading {
  align-items: center;
  margin-bottom: 13px;
}

.legend {
  display: flex;
  gap: 12px;
  color: #64748b;
  font-size: 11px;
}

.legend span {
  white-space: nowrap;
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
}

.revenue-dot {
  background: #2563eb;
}

.cost-dot {
  background: #f59e0b;
}

.chart-wrap {
  width: 100%;
  overflow: hidden;
}

#roi-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 210px;
}

.chart-grid-line {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.chart-axis-label {
  fill: #94a3b8;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 10px;
}

.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.revenue-line {
  stroke: #2563eb;
}

.cost-line {
  stroke: #f59e0b;
  stroke-dasharray: 6 5;
}

.chart-dot {
  stroke: #fff;
  stroke-width: 2;
}

/* Tables & Projection Section */
.projection-section {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th {
  padding: 12px 14px;
  color: #64748b;
  background: #f8fafc;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 14px;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
}

td:first-child,
td:last-child {
  color: #172033;
  font-weight: 700;
}

/* Toast Notifications */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  max-width: calc(100vw - 48px);
  padding: 13px 17px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #166534;
  background: #f0fdf4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 900px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-bottom: 40px;
  }

  .hero {
    border-radius: 0 0 12px 12px;
    padding: 36px 20px;
  }

  .workspace {
    padding: 25px 14px 0;
  }

  .card,
  .projection-section {
    padding: 22px 18px;
    margin-bottom: 22px;
  }

  .section-heading,
  .results-intro {
    display: block;
  }

  .heading-note {
    display: block;
    padding-top: 9px;
  }

  .industry-grid,
  .slider-list,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .industry-card {
    min-height: 68px;
  }

  .notice-card {
    margin-bottom: 28px;
    padding: 19px;
  }

  .results-intro h2 {
    margin-bottom: 18px;
  }

  .result-actions {
    justify-content: stretch;
  }

  .result-actions .button {
    flex: 1 1 110px;
  }

  .detail-card,
  .chart-card {
    padding: 20px 18px;
  }

  .chart-heading {
    display: block;
  }

  .legend {
    margin-top: 13px;
  }

  .status-row {
    display: block;
  }

  .status-pill {
    display: inline-block;
    margin-top: 14px;
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 17px 12px;
  }

  .period-button {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .result-actions .button {
    flex-basis: 100%;
  }
}