:root {
  color-scheme: light;
  --bg: #f5f7f2;
  --panel: #ffffff;
  --text: #16201d;
  --muted: #5c6964;
  --line: #dce4de;
  --accent: #127765;
  --accent-dark: #0b5548;
  --accent-soft: #e2f3ee;
  --gold: #f5b84b;
  --rose: #f7dfdc;
  --shadow: 0 24px 70px rgba(22, 32, 29, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(18, 119, 101, 0.16), transparent 34rem),
    linear-gradient(135deg, #f8faf5 0%, var(--bg) 48%, #eef5f1 100%);
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(18, 119, 101, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0e5d50;
  font-size: 0.76rem;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(22, 32, 29, 0.08);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.35rem, 7vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-support {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.subheadline {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.trust-strip {
  display: grid;
  gap: 10px;
  min-width: 230px;
}

.trust-strip span {
  border: 1px solid rgba(18, 119, 101, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(22, 32, 29, 0.06);
}

.tool-panel {
  display: grid;
  gap: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  background: #edf2ee;
  font-weight: 800;
}

.step strong {
  font-size: 0.95rem;
}

.step.active {
  border-color: rgba(18, 119, 101, 0.35);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.step.active span {
  background: var(--accent);
  color: #ffffff;
}

.form-card,
.ai-loading,
.results {
  border: 1px solid rgba(22, 32, 29, 0.08);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 22px;
}

.form-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.form-heading p,
.privacy-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

label span,
legend {
  color: #283530;
  font-weight: 750;
}

fieldset {
  border: 0;
  padding: 0;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fbfcfa;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(18, 119, 101, 0.13);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 170px));
  gap: 10px;
}

.choice-grid label,
.choice-row label {
  position: relative;
  margin: 0;
}

.choice-grid input,
.choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span,
.choice-row span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfa;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.choice-grid input:checked + span,
.choice-row input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.form-error {
  min-height: 22px;
  margin: 0 0 12px;
  color: #a4322a;
  font-weight: 700;
}

.success-note {
  border: 1px solid rgba(18, 119, 101, 0.24);
  border-radius: 8px;
  margin: 14px 0 12px;
  padding: 12px 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.primary-button,
.final-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 14px 18px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 14px 28px rgba(18, 119, 101, 0.22);
}

.primary-button:hover,
.final-cta a:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.ai-loading {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  min-height: 260px;
  overflow: hidden;
}

.ai-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), #fff7e6);
}

.ai-orbit::before {
  content: "";
  width: 56px;
  height: 56px;
  border: 3px solid rgba(18, 119, 101, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 1.05s linear infinite;
}

.ai-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.85;
  animation: pulse 1.4s ease-in-out infinite;
}

.ai-orbit span:nth-child(1) {
  top: 18px;
  right: 28px;
}

.ai-orbit span:nth-child(2) {
  bottom: 24px;
  right: 18px;
  animation-delay: 0.18s;
  background: var(--gold);
}

.ai-orbit span:nth-child(3) {
  bottom: 28px;
  left: 18px;
  animation-delay: 0.36s;
  background: #d36f5f;
}

.ai-loading h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  line-height: 1.08;
}

.loading-track {
  position: relative;
  height: 10px;
  max-width: 460px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eee9;
}

.loading-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  animation: loadSweep 1.35s ease-in-out infinite;
}

.hidden {
  display: none;
}

.results-intro {
  margin-bottom: 18px;
}

.results-intro h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.65rem, 5vw, 2.55rem);
  line-height: 1.08;
}

.results-intro p:last-child {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.45);
    opacity: 0.55;
  }
}

@keyframes loadSweep {
  0% {
    transform: translateX(-105%);
  }

  55% {
    transform: translateX(75%);
  }

  100% {
    transform: translateX(245%);
  }
}

.score-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(135deg, var(--accent-soft), #fff7e6);
}

.score-display {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.score-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
  overflow-wrap: normal;
  white-space: nowrap;
}

.score-label {
  justify-self: start;
  border: 1px solid rgba(18, 119, 101, 0.22);
  border-radius: 999px;
  margin: 0;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

.score-progress {
  width: min(100%, 360px);
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 119, 101, 0.12);
}

.score-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.7s ease;
}

.score-card p:last-child {
  margin: 0;
  color: #33413c;
  font-size: 1.02rem;
  line-height: 1.6;
}

.score-feedback {
  display: grid;
  gap: 16px;
}

.score-feedback > p {
  margin: 0;
  color: #33413c;
  font-size: 1.02rem;
  line-height: 1.6;
}

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

.score-insights div {
  border: 1px solid rgba(18, 119, 101, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.score-insights h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.score-insights ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

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

.result-grid article,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.result-grid h3 {
  margin: 0;
  font-size: 1rem;
}

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

.copy-button {
  flex: 0 0 auto;
  border: 1px solid rgba(18, 119, 101, 0.2);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.copy-button:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.copy-button.copied {
  border-color: rgba(18, 119, 101, 0.42);
  background: var(--accent);
  color: #ffffff;
}

.score-card .copy-button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.result-grid p,
.result-grid ol {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.result-grid ol {
  padding-left: 20px;
}

.bridge-panel {
  border: 1px solid rgba(18, 119, 101, 0.16);
  border-radius: 8px;
  margin-top: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(226, 243, 238, 0.78), rgba(255, 247, 230, 0.72));
}

.bridge-panel p {
  margin: 0;
  color: #33413c;
  font-size: 1rem;
  line-height: 1.65;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: center;
  margin-top: 16px;
  padding: 26px;
  background: linear-gradient(135deg, #13201c, #214238);
  color: #ffffff;
  box-shadow: 0 22px 50px rgba(19, 32, 28, 0.22);
}

.final-cta h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.15;
}

.final-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.55;
}

.final-cta-action {
  display: grid;
  gap: 10px;
}

.final-cta .cta-microcopy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.final-cta .cta-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.final-cta a {
  min-height: 66px;
  padding: 18px 24px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #f8c94f;
  color: #151206;
  font-size: 1.08rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 0 0 6px rgba(248, 201, 79, 0.14);
  text-align: center;
}

.final-cta a:hover {
  background: #ffe082;
  color: #1d170c;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32), 0 0 0 7px rgba(248, 201, 79, 0.2);
}

.bonus-hero {
  margin-bottom: 20px;
}

.bonus-overview {
  margin-bottom: 16px;
}

.bonus-panel {
  border: 1px solid rgba(22, 32, 29, 0.08);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
}

.bonus-panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
}

.bonus-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.bonus-overview-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfa;
}

.bonus-overview-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.bonus-overview-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.bonus-section {
  margin-top: 16px;
}

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

.plan-card,
.starter-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.plan-day {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-card h3,
.starter-card h3 {
  margin: 12px 0 8px;
  font-size: 1.04rem;
  line-height: 1.3;
}

.plan-card p,
.plan-card ul,
.copy-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.plan-card ul {
  margin-top: 12px;
  padding-left: 20px;
}

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

.starter-card {
  display: grid;
  gap: 8px;
}

.starter-card-wide {
  grid-column: 1 / -1;
}

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

.copy-block strong {
  color: var(--text);
}

.bonus-footer {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 22px, 1120px);
    padding: 24px 0;
  }

  .hero,
  .ai-loading,
  .score-card,
  .score-insights,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .ai-orbit {
    width: 92px;
    height: 92px;
  }

  .trust-strip {
    min-width: 0;
  }

  .steps {
    gap: 6px;
  }

  .step {
    justify-content: center;
    padding: 9px 6px;
  }

  .step span {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 0.82rem;
  }

  .step strong {
    font-size: 0.82rem;
  }

  .choice-grid,
  .result-grid,
  .plan-grid,
  .starter-pack-grid,
  .bonus-overview-grid {
    grid-template-columns: 1fr;
  }

  .score-card {
    padding-top: 58px;
  }

  .score-card h2 {
    font-size: clamp(1.08rem, 5vw, 1.35rem);
  }

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

  .final-cta a {
    width: 100%;
  }
}
