:root {
  --blue: #185abc;
  --blue-dark: #123f84;
  --orange: #f28c28;
  --green: #1f8a4c;
  --amber: #b7791f;
  --red: #c0392b;
  --gray-status: #687385;
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #d9e0ea;
  --soft-blue: #eaf2ff;
  --soft-orange: #fff4e6;
  --soft-green: #edf8f1;
  --soft-red: #fff0ee;
  --shadow: 0 14px 36px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 20px 14px 40px;
}

.hero {
  padding: 22px 4px 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 2rem;
  line-height: 1.1;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.18rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.hero p,
.section-heading p,
.helper-text {
  color: var(--muted);
}

.view {
  display: block;
}

.hidden {
  display: none;
}

.card,
.diagnostic-card {
  margin-bottom: 16px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-card {
  padding-bottom: 20px;
}

.section-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.with-divider {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.step-marker {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.optional,
.helper-text {
  font-size: 0.82rem;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 11px 12px;
}

textarea {
  min-height: 220px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(24, 90, 188, 0.16);
}

.plans-container {
  display: grid;
  gap: 14px;
}

.plan-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfe;
}

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

.dynamic-fields {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.benefit-note {
  padding: 12px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: var(--soft-orange);
  color: #6d3b00;
  font-size: 0.9rem;
}

.disclaimer-box,
.disclaimer-card {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #c8d8f2;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #f4f8ff;
  color: #24415f;
  font-size: 0.9rem;
}

.disclaimer-card {
  margin-bottom: 16px;
}

.disclaimer-card p {
  margin-bottom: 0;
}

.important-note {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid #f3d28b;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #fff8df;
  color: #5f4200;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-actions {
  display: flex;
  margin-top: 18px;
}

.split-actions {
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  background: var(--blue);
  color: #ffffff;
  padding: 12px 16px;
}

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

.secondary-button {
  min-height: 44px;
  border: 1px solid var(--blue);
  background: #ffffff;
  color: var(--blue);
  padding: 10px 14px;
}

.secondary-button:hover {
  background: var(--soft-blue);
}

.icon-button {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  background: #edf1f7;
  color: var(--muted);
}

.form-error {
  min-height: 20px;
  margin-top: 12px;
  color: #8a4b00;
  font-weight: 700;
}

.diagnostic-card {
  border: 1px solid var(--border);
  border-left: 6px solid var(--gray-status);
}

.diagnostic-card.good {
  background: var(--soft-green);
  border-color: rgba(31, 138, 76, 0.32);
  border-left-color: var(--green);
}

.diagnostic-card.good h2,
.diagnostic-card.good .diagnostic-label {
  color: var(--green);
}

.diagnostic-card.review {
  background: var(--soft-orange);
  border-color: rgba(242, 140, 40, 0.38);
  border-left-color: var(--orange);
}

.diagnostic-card.review h2,
.diagnostic-card.review .diagnostic-label {
  color: #a45f10;
}

.diagnostic-card.low {
  background: var(--soft-red);
  border-color: rgba(192, 57, 43, 0.32);
  border-left-color: var(--red);
}

.diagnostic-card.low h2,
.diagnostic-card.low .diagnostic-label {
  color: var(--red);
}

.diagnostic-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.diagnostic-card.good .diagnostic-label {
  background: #ffffff;
  border: 1px solid rgba(31, 138, 76, 0.24);
}

.diagnostic-card.review .diagnostic-label {
  background: #ffffff;
  border: 1px solid rgba(242, 140, 40, 0.28);
}

.diagnostic-card.low .diagnostic-label {
  background: #ffffff;
  border: 1px solid rgba(192, 57, 43, 0.24);
}

.diagnostic-color-guide {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.comparison-output {
  display: grid;
  gap: 14px;
}

.result-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfe;
}

.result-card h3 {
  font-weight: 800;
}

.best-plan {
  border-color: rgba(31, 138, 76, 0.55);
  background: #f2fbf6;
  font-weight: 800;
}

.best-plan .result-row dt,
.best-plan .result-row dd,
.best-plan .important-note {
  font-weight: 800;
}

.recommended-title {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.recommended-name {
  font-weight: 800;
}

.recommended-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
}

.result-card dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9edf3;
}

.result-row dt {
  color: var(--muted);
  font-weight: 500;
}

.result-row dd {
  margin: 0;
  text-align: right;
  font-weight: 400;
}

.key-result-row dt,
.key-result-row dd {
  color: var(--text);
  font-weight: 800;
}

.highlight-card {
  border-color: rgba(242, 140, 40, 0.45);
  background: #fffaf3;
}

.stacked-copy {
  display: grid;
  gap: 12px;
}

.stacked-copy p {
  margin: 0;
}

.whatsapp-card {
  border-color: rgba(24, 90, 188, 0.25);
}

.wide-button {
  width: 100%;
}

@media (min-width: 700px) {
  .app-shell {
    padding: 34px 24px 56px;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .card,
  .diagnostic-card {
    padding: 24px;
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-button {
    width: auto;
    min-width: 220px;
  }

  .wide-button {
    width: auto;
  }
}
