:root {
  --bg: #0b1119;
  --hero-bg: linear-gradient(180deg, #184b92 0%, #113a74 100%);
  --hero-border: #0e3263;

  --card-bg: #ffffff;
  --card-border: #d7e1ec;
  --card-shadow: 0 16px 34px rgba(14, 46, 84, 0.12);

  --blue-100: #f3f8fe;
  --blue-200: #e5f0fb;
  --blue-300: #d5e7fa;
  --blue-400: #b7d6f6;
  --blue-500: #6faef0;
  --blue-600: #3487e3;
  --blue-700: #1869cf;
  --blue-800: #1059b5;
  --blue-900: #0d417f;

  --text: #112132;
  --text-soft: #4c6178;
  --text-faint: #8696a8;
  --text-white: #ffffff;

  --input-bg: #ffffff;
  --input-border: #cfd9e6;
  --input-focus: #2d7fe0;

  --instruction: #d7ac00;
  --danger: #b42318;

  --helper-accent: #cb2f2f;
  --helper-accent-dark: #aa2222;

  --success: #2d9660;
  --success-soft: #eaf7ef;

  --dark-panel: linear-gradient(180deg, rgba(20, 31, 54, 0.97), rgba(10, 16, 28, 0.97));
  --dark-panel-border: rgba(116, 170, 255, 0.34);
  --dark-panel-shadow:
    0 16px 42px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 24px rgba(68, 122, 255, 0.12);

  --disclaimer-panel: linear-gradient(180deg, rgba(33, 26, 32, 0.98), rgba(20, 15, 19, 0.98));
  --disclaimer-border: rgba(255, 170, 170, 0.22);
  --disclaimer-shadow: 0 16px 42px rgba(0, 0, 0, 0.42), 0 0 20px rgba(255, 92, 92, 0.07);

  --footer-panel: linear-gradient(180deg, rgba(14, 22, 40, 0.98), rgba(8, 13, 24, 0.98));
  --footer-border: rgba(116, 170, 255, 0.3);
  --footer-shadow: 0 16px 42px rgba(0, 0, 0, 0.44), 0 0 26px rgba(76, 130, 255, 0.1);

  --radius: 24px;
  --radius-sm: 18px;
  --pill-radius: 999px;
  --max-width: 900px;
  --section-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.58;
  background: var(--bg);
  color: var(--text);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 22px 16px 64px;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 22px 0 12px;
}

.hero__inner {
  background: var(--hero-bg);
  border: 1px solid var(--hero-border);
  border-radius: 28px;
  padding: 30px 24px;
  box-shadow: var(--card-shadow);
}

.hero h1 {
  margin-bottom: 14px;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.hero__subheadline,
.hero__support,
.hero__disclaimer {
  color: var(--text-white);
}

.hero__subheadline {
  margin-bottom: 10px;
  font-size: 1.12rem;
  font-weight: 700;
}

.hero__support {
  margin-bottom: 12px;
  font-size: 1rem;
}

.hero__disclaimer {
  margin-bottom: 0;
  font-size: 0.94rem;
  opacity: 0.96;
}

/* =========================================================
   STANDARD CARDS
   ========================================================= */

.card {
  margin-top: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--card-shadow);
}

.card--form {
  border-top: 6px solid var(--blue-700);
}

.card--helper {
  border-top: 6px solid var(--helper-accent);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.card--results {
  border-top: 6px solid var(--blue-800);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.card--utility {
  border-top: 6px solid var(--success);
  background: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 8px;
  font-size: 1.42rem;
  line-height: 1.18;
  font-weight: 800;
  color: var(--text);
}

.section-heading p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

/* =========================================================
   FORM / FIELDS
   ========================================================= */

.form-grid,
.income-helper-grid,
.checklist-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label,
.field__legend {
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--text);
}

.label-with-help {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.label-with-help label,
.label-with-help .field__legend {
  margin-bottom: 0;
}

.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--blue-400);
  border-radius: 50%;
  background: #ffffff;
  color: var(--blue-800);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 10px rgba(16, 89, 181, 0.1);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease;
}

.help-button:hover,
.help-button:focus {
  transform: translateY(-1px);
}

.help-button--header {
  flex-shrink: 0;
}

.help-popover {
  margin-top: 8px;
  border: 1px solid var(--blue-300);
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--text-soft);
  padding: 13px 14px;
  font-size: 0.94rem;
}

.help-popover--block {
  margin-top: 0;
  margin-bottom: 16px;
}

.field input,
.field select {
  width: 100%;
  border: 2px solid var(--input-border);
  border-radius: 18px;
  background: var(--input-bg);
  color: var(--text);
  padding: 15px 16px;
  font-size: 1.02rem;
}

.field input::placeholder {
  color: var(--text-faint);
  font-style: italic;
}

.field__help {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--instruction);
  font-size: 0.94rem;
  font-weight: 800;
}

.field__error {
  min-height: 1.25rem;
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 700;
}

/* =========================================================
   TOGGLES
   ========================================================= */

.field--toggle-group {
  gap: 8px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toggle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 12px;
  border: 2px solid var(--input-border);
  border-radius: 20px;
  background: #ffffff;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 14px rgba(14, 46, 84, 0.06);
}

.toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-card__control {
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 999px;
  background: #d4deea;
  transition: background 140ms ease;
}

.toggle-card__control::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(20, 37, 64, 0.16);
  transition: transform 140ms ease;
}

.toggle-card__label {
  font-weight: 800;
  color: var(--text);
}

.toggle-card:has(input:checked) {
  border-color: var(--blue-600);
  background: #f7fbff;
}

.toggle-card:has(input:checked) .toggle-card__control {
  background: var(--blue-700);
}

.toggle-card:has(input:checked) .toggle-card__control::after {
  transform: translateX(30px);
}

/* =========================================================
   BUTTONS / ACTIONS
   ========================================================= */

.form-footer,
.helper-actions {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.form-note {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.primary-button,
.secondary-button,
.helper-button {
  border: 0;
  border-radius: var(--pill-radius);
  padding: 15px 20px;
  font-size: 1.01rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease,
    border-color 140ms ease;
}

.primary-button {
  background: linear-gradient(180deg, #2b97f2 0%, var(--blue-700) 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(24, 105, 207, 0.22);
}

.secondary-button {
  background: #ffffff;
  color: var(--text);
  border: 2px solid var(--input-border);
  box-shadow: 0 8px 18px rgba(14, 46, 84, 0.08);
}

.secondary-button--ghost {
  background: #f8fbff;
}

.helper-button--alert {
  background: linear-gradient(180deg, #e24d4d 0%, var(--helper-accent) 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(203, 47, 47, 0.24);
}

.helper-button--soft {
  background: #ffffff;
  color: var(--helper-accent-dark);
  border: 2px solid #f1c2c2;
  box-shadow: 0 8px 18px rgba(203, 47, 47, 0.1);
}

.primary-button:hover,
.primary-button:focus,
.secondary-button:hover,
.secondary-button:focus,
.helper-button:hover,
.helper-button:focus {
  transform: translateY(-1px);
  opacity: 0.98;
}

.secondary-button:hover,
.secondary-button:focus {
  border-color: var(--blue-600);
}

/* =========================================================
   HELPER
   ========================================================= */

.helper-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.helper-header h2 {
  margin-bottom: 8px;
  font-size: 1.34rem;
  color: var(--text);
}

.helper-header p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.income-result,
.result-summary,
.checklist-progress,
.checklist-group,
.checklist-note {
  border-radius: var(--radius-sm);
}

.income-result {
  margin-top: 16px;
  border: 1px solid #f0c0c0;
  background: #fff8f8;
  padding: 16px;
}

.income-result__label {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.income-result__value {
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--helper-accent-dark);
}

.income-result__note {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hidden {
  display: none;
}

/* =========================================================
   RESULTS
   ========================================================= */

.result-summary {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--blue-300);
  background: var(--blue-100);
}

.result-summary--strong {
  background: var(--success-soft);
  border-color: #bde2c9;
}

.result-summary--workable,
.result-summary--preparation-light {
  background: #fff8df;
  border-color: #e8d287;
}

.result-summary--preparation {
  background: var(--blue-100);
  border-color: var(--blue-300);
}

.result-summary__label {
  margin-bottom: 6px;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--text);
}

.result-summary__text {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.result-block + .result-block {
  margin-top: 22px;
}

.result-block h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  color: var(--text);
}

.result-range {
  margin-bottom: 14px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--blue-800);
}

.cost-breakdown {
  margin: 0;
  display: grid;
  gap: 12px;
}

.cost-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--blue-200);
}

.cost-breakdown div:first-child {
  border-top: 0;
  padding-top: 0;
}

.cost-breakdown dt {
  color: var(--text-soft);
}

.cost-breakdown dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
  color: var(--text);
}

.result-list {
  margin: 0;
  padding-left: 22px;
  color: var(--text-soft);
}

.result-list li + li {
  margin-top: 8px;
}

.disclaimer-block {
  border-top: 1px solid var(--blue-200);
  padding-top: 18px;
}

.results-disclaimer {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
  opacity: 0.92;
}

.disclaimer-inline {
  margin-bottom: 10px;
  color: var(--blue-800);
  font-weight: 800;
}

.disclaimer-full {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* =========================================================
   CHECKLIST
   ========================================================= */

.checklist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.checklist-progress {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #cde4d7;
  background: #f7fcf8;
}

.checklist-progress__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.checklist-progress__label,
.checklist-progress__percent {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 700;
}

.checklist-progress__bar {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dff2e7;
}

.checklist-progress__fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--success) 0%, #67c48f 100%);
  transition: width 180ms ease;
}

.checklist-group {
  border: 1px solid #d7ebe0;
  padding: 16px;
  background: #ffffff;
}

.checklist-group h3 {
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--text-soft);
}

.checklist-item + .checklist-item {
  margin-top: 12px;
}

.checklist-item input {
  margin-top: 3px;
  flex-shrink: 0;
}

.checklist-item.is-complete span {
  color: var(--text-faint);
  text-decoration: line-through;
}

.checklist-note {
  margin-top: 16px;
  border: 1px solid #d7ebe0;
  padding: 14px 16px;
  background: #f9fdfa;
}

.checklist-note p {
  margin-bottom: 0;
  color: var(--text-soft);
}

/* =========================================================
   TRUST / HOW IT WORKS / DISCLAIMER
   ========================================================= */

.info-section {
  width: min(var(--section-width), calc(100% - 28px));
  margin: 0 auto 32px;
  scroll-margin-top: 24px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f4f8ff;
}

.section-subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(232, 240, 255, 0.86);
}

.info-card {
  background: var(--dark-panel);
  border: 1px solid var(--dark-panel-border);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: var(--dark-panel-shadow);
}

.info-card p {
  margin: 0 0 15px;
  line-height: 1.8;
  color: rgba(241, 246, 255, 0.94);
}

.info-card p:last-child {
  margin-bottom: 0;
}

.trust-points {
  margin: 20px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.trust-points li {
  color: #eef4ff;
  line-height: 1.65;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.mini-card {
  background: linear-gradient(180deg, rgba(24, 39, 68, 0.98), rgba(13, 21, 38, 0.98));
  border: 1px solid rgba(116, 170, 255, 0.34);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.34),
    0 0 16px rgba(78, 134, 255, 0.08);
}

.mini-card h3 {
  margin: 0 0 10px;
  color: #f4f8ff;
  font-size: 1.04rem;
  line-height: 1.3;
}

.mini-card p {
  margin: 0;
  color: rgba(235, 242, 255, 0.9);
  line-height: 1.7;
}

.disclaimer-section .section-header h2 {
  color: #fff2f2;
}

.disclaimer-section .section-subtitle {
  color: rgba(255, 241, 241, 0.9);
}

.disclaimer-card {
  background: var(--disclaimer-panel);
  border: 1px solid var(--disclaimer-border);
  box-shadow: var(--disclaimer-shadow);
}

.disclaimer-card p {
  color: rgba(255, 241, 241, 0.9);
}

/* spacing refinements */
.results-section + .how-it-works {
  margin-top: 42px;
}

.card--utility + .disclaimer-section {
  margin-top: 42px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  width: min(var(--section-width), calc(100% - 28px));
  margin: 8px auto 42px;
  background: var(--footer-panel);
  border: 1px solid var(--footer-border);
  border-radius: 24px;
  box-shadow: var(--footer-shadow);
  overflow: hidden;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 1fr;
  gap: 26px;
  padding: 26px 24px 18px;
}

.footer-column h2,
.footer-column h3 {
  margin: 0 0 10px;
  color: #f4f8ff;
  line-height: 1.25;
}

.footer-product-name {
  margin: 0 0 10px;
  font-weight: 600;
  color: rgba(232, 240, 255, 0.94);
}

.footer-column p {
  margin: 0 0 10px;
  color: rgba(228, 236, 250, 0.9);
  line-height: 1.7;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-nav a {
  color: #dbe8ff;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
  opacity: 1;
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 24px 16px;
  background: rgba(255, 255, 255, 0.02);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(221, 230, 246, 0.76);
}

/* =========================================================
   FOCUS STATES
   ========================================================= */

.field input:focus,
.field select:focus,
.help-button:focus,
.primary-button:focus,
.secondary-button:focus,
.helper-button:focus,
.toggle-card:focus-within {
  outline: 3px solid rgba(52, 135, 227, 0.18);
  outline-offset: 2px;
  border-color: var(--input-focus);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 680px) {
  .page-shell {
    padding: 28px 20px 72px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .form-grid,
  .income-helper-grid {
    grid-template-columns: 1fr 1fr;
  }

  .helper-actions {
    grid-template-columns: max-content max-content;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .checklist-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .info-section,
  .site-footer {
    width: min(100% - 18px, var(--section-width));
  }

  .info-card,
  .mini-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .footer-inner {
    padding: 20px 16px 16px;
    gap: 18px;
  }

  .footer-bottom {
    padding: 12px 16px 14px;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }
}

/* =========================================================
   DESKTOP MONETIZATION RAILS
   ========================================================= */

.layout-shell {
  width: min(1500px, calc(100% - 20px));
  margin: 0 auto;
}

.side-rail {
  display: none;
}

.rail-card {
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(116, 170, 255, 0.22);
}

.rail-card + .rail-card {
  margin-top: 16px;
}

.rail-eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 226, 255, 0.7);
}

.rail-card h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.3;
  color: #f4f8ff;
}

.rail-card p {
  margin: 0 0 10px;
  line-height: 1.65;
  color: rgba(232, 240, 255, 0.9);
}

.rail-link {
  display: inline-block;
  margin-top: 2px;
  color: #dbe8ff;
  text-decoration: none;
  font-weight: 700;
}

.rail-link:hover,
.rail-link:focus {
  opacity: 1;
  text-decoration: underline;
}

.rail-card--ad,
.rail-card--resource,
.rail-card--app,
.rail-card--soft {
  background: linear-gradient(180deg, rgba(18, 28, 48, 0.98), rgba(9, 14, 24, 0.98));
}

@media (min-width: 1260px) {
  .layout-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 900px) 220px;
    gap: 20px;
    align-items: start;
  }

  .side-rail {
    display: block;
    position: sticky;
    top: 18px;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 1259px) {
  .layout-shell {
    width: 100%;
  }
}

/* Right-rail resource module list */

.rail-list {
  margin: 10px 0 12px;
  padding-left: 18px;
  color: rgba(232, 240, 255, 0.9);
}

.rail-list li + li {
  margin-top: 6px;
}
