:root {
  --ink: #14202b;
  --muted: #637083;
  --line: #d9e2ea;
  --surface: #ffffff;
  --soft: #f2f7f8;
  --teal: #047d84;
  --teal-dark: #035c62;
  --amber: #f0b34f;
  --green: #3d9b63;
  --blue: #235a8f;
  --shadow: 0 22px 55px rgba(18, 32, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--teal-dark);
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--teal);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--teal-dark);
}

main {
  min-height: calc(100vh - 160px);
}

.hero {
  background:
    linear-gradient(120deg, rgba(4, 125, 132, 0.12), rgba(240, 179, 79, 0.12)),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(34px, 6vw, 78px) clamp(18px, 5vw, 64px);
}

.layout-two {
  align-items: stretch;
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.74fr);
}

.compact-hero {
  padding-bottom: 42px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 5vw, 68px);
  max-width: 920px;
}

h2 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.hero-text,
.section-heading p,
.content-page p,
.message-page p {
  color: var(--muted);
  font-size: 18px;
  max-width: 780px;
}

.hero-actions,
.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button.primary {
  background: var(--teal);
  color: white;
}

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

.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.match-preview {
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: white;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
}

.preview-topline {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
}

.preview-row {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: 16px 1fr;
}

.preview-row p {
  color: rgba(255, 255, 255, 0.72);
  margin: 4px 0 0;
}

.signal {
  border-radius: 999px;
  display: block;
  height: 12px;
  margin-top: 7px;
  width: 12px;
}

.signal.teal { background: #39c2c9; }
.signal.amber { background: var(--amber); }
.signal.green { background: #54c27d; }

.section-shell,
.wizard-shell,
.message-page,
.content-page {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 32px);
}

.section-heading {
  margin-bottom: 26px;
}

.lead-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label span,
legend {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 7px;
}

label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

input,
select {
  background: white;
  border: 1px solid #cfd9e2;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(4, 125, 132, 0.18);
  outline: none;
}

.choice-group {
  border: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0;
  padding: 0;
}

.choice-group legend {
  grid-column: 1 / -1;
}

.choice-group label,
.consent-box {
  align-items: flex-start;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.choice-group input,
.consent-box input {
  flex: 0 0 auto;
  margin-top: 4px;
  min-height: auto;
  width: auto;
}

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

.consent-box {
  margin-top: 18px;
}

.consent-box span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 20px;
}

.form-status {
  color: var(--green);
  font-weight: 800;
  margin: 14px 0 0;
}

.form-status.error {
  color: #b42318;
}

.category-band {
  align-items: center;
  background: var(--ink);
  color: white;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  padding: clamp(32px, 5vw, 56px) clamp(18px, 5vw, 64px);
}

.category-band .eyebrow,
.category-band h2 {
  color: white;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-list span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: white;
  font-weight: 800;
  padding: 10px 12px;
}

.wizard-form {
  overflow: hidden;
}

.wizard-progress {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 28px;
}

.wizard-progress span {
  background: #d7e0e8;
  border-radius: 999px;
  height: 8px;
}

.wizard-progress span.active {
  background: var(--teal);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.hidden,
.trap {
  display: none !important;
}

.site-footer {
  align-items: center;
  background: white;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 22px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.content-page {
  background: white;
  max-width: 880px;
}

.content-page h1,
.message-page h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.content-page h2 {
  font-size: 24px;
  margin-top: 28px;
}

.message-page {
  text-align: center;
}

.message-page .button {
  margin-top: 16px;
}

.tips-hero {
  align-items: stretch;
  background:
    linear-gradient(120deg, rgba(4, 125, 132, 0.12), rgba(35, 90, 143, 0.10)),
    var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 64px);
}

.tips-hero h1 {
  max-width: 980px;
}

.prep-meter {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: white;
  display: grid;
  gap: 20px;
  grid-template-columns: 150px 1fr;
  padding: clamp(18px, 3vw, 28px);
}

.meter-ring {
  --prep-percent: 0%;
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, var(--ink) 57%, transparent 58%),
    conic-gradient(var(--teal) var(--prep-percent), rgba(255, 255, 255, 0.16) 0);
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 132px;
}

.meter-ring strong {
  font-size: 34px;
  line-height: 1;
}

.meter-ring span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
  text-transform: uppercase;
}

.prep-checks {
  display: grid;
  gap: 9px;
}

.prep-checks label {
  align-items: center;
  display: flex;
  gap: 9px;
  font-weight: 800;
}

.prep-checks input {
  min-height: auto;
  width: auto;
}

.tips-console {
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(30px, 6vw, 64px) clamp(18px, 5vw, 32px);
}

.tips-toolbar {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  margin-bottom: 20px;
}

.tips-search span {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 7px;
}

.tip-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tip-tabs button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
}

.tip-tabs button.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.coach-panel {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 24px;
  padding: clamp(20px, 3vw, 28px);
}

.coach-panel h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.coach-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  margin: 10px 0 0;
}

.tips-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tip-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 32, 43, 0.08);
  overflow: hidden;
}

.tip-question {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  gap: 14px;
  grid-template-columns: 48px 1fr 28px;
  min-height: 78px;
  padding: 18px;
  text-align: left;
  width: 100%;
}

.tip-question::after {
  color: var(--teal-dark);
  content: '+';
  font-size: 28px;
  font-weight: 800;
  grid-column: 3;
}

.tip-card.open .tip-question::after {
  content: '-';
}

.tip-number {
  align-items: center;
  background: #e6f4f4;
  border-radius: 6px;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 14px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.tip-answer {
  border-top: 1px solid var(--line);
  display: none;
  padding: 0 18px 18px 80px;
}

.tip-card.open .tip-answer {
  display: block;
}

.tip-answer p {
  color: var(--muted);
  margin: 14px 0 0;
}

.tip-answer .tip-action {
  background: #f7fbef;
  border-left: 4px solid var(--green);
  color: var(--ink);
  font-weight: 800;
  padding: 10px 12px;
}

.no-tip-results {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: none;
  font-weight: 800;
  padding: 18px;
  text-align: center;
}

.no-tip-results.active {
  display: block;
}

@media (max-width: 860px) {
  .site-header,
  .layout-two,
  .category-band,
  .tips-hero,
  .tips-toolbar,
  .coach-panel {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    display: grid;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .form-grid,
  .choice-group,
  .choice-group.expanded,
  .tips-grid,
  .prep-meter {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 38px;
  }

  .tip-tabs {
    justify-content: flex-start;
  }

  .tip-answer {
    padding-left: 18px;
  }

  .tip-question {
    grid-template-columns: 44px 1fr 22px;
  }
}
