:root {
  --bg: #f7f9f3;
  --panel: #ffffff;
  --ink: #000000;
  --muted: #4f544a;
  --line: #dfe7d4;
  --brand: #b5c99a;
  --brand-dark: #7f9464;
  --brand-soft: #edf3e4;
  --accent: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(181, 201, 154, 0.42), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Kanit", "Myriad Pro", system-ui, sans-serif;
  font-weight: 300;
}

button,
a {
  font: inherit;
}

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

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 48px;
}

.eyebrow,
.offer-kicker,
.step-label,
.score-label {
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(2.2rem, 5.8vw, 4.15rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: 0.01em;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 500;
}

.hero__copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero__actions,
.offer-actions,
.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__actions {
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--brand);
  color: #000;
  box-shadow: 0 12px 24px rgba(181, 201, 154, 0.34);
}

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

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.secondary-button {
  background: #f4f6ef;
  color: var(--ink);
  border: 1px solid var(--line);
}

.time-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__visual {
  display: grid;
  place-items: center;
}

.window-card {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 0.86;
  overflow: hidden;
  border: 1px solid rgba(36, 48, 47, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px) 50% 0 / 50% 100%,
    linear-gradient(180deg, #eef3e5 0%, #ffffff 52%, #dfe8d1 100%);
  box-shadow: var(--shadow);
}

.sun {
  position: absolute;
  top: 42px;
  right: 58px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--brand);
}

.plant {
  position: absolute;
  left: 52px;
  bottom: 58px;
  width: 64px;
  height: 150px;
  border-radius: 48px 48px 12px 12px;
  background: linear-gradient(150deg, #8da374 0 48%, var(--brand) 48% 100%);
  transform: rotate(-8deg);
}

.pet {
  position: absolute;
  bottom: 46px;
  border-radius: 48% 48% 18px 18px;
}

.pet span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #24302f;
}

.pet--cat {
  right: 118px;
  width: 122px;
  height: 118px;
  background: #ffffff;
}

.pet--cat::before,
.pet--cat::after {
  content: "";
  position: absolute;
  top: -24px;
  width: 42px;
  height: 42px;
  background: #ffffff;
  transform: rotate(45deg);
}

.pet--cat::before {
  left: 12px;
}

.pet--cat::after {
  right: 12px;
}

.pet--cat span {
  left: 36px;
  top: 45px;
  width: 9px;
  height: 9px;
  box-shadow: 42px 0 0 #24302f;
}

.pet--dog {
  right: 34px;
  bottom: 38px;
  width: 112px;
  height: 104px;
  background: #b5c99a;
}

.pet--dog::before,
.pet--dog::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 34px;
  height: 62px;
  border-radius: 20px;
  background: #7f9464;
}

.pet--dog::before {
  left: -12px;
  transform: rotate(20deg);
}

.pet--dog::after {
  right: -12px;
  transform: rotate(-20deg);
}

.pet--dog span {
  left: 31px;
  top: 40px;
  width: 8px;
  height: 8px;
  box-shadow: 36px 0 0 #24302f;
}

.moisture-dot {
  position: absolute;
  width: 18px;
  height: 26px;
  border-radius: 50% 50% 55% 55%;
  background: rgba(181, 201, 154, 0.86);
  transform: rotate(18deg);
}

.moisture-dot--one {
  left: 42px;
  top: 76px;
}

.moisture-dot--two {
  left: 132px;
  top: 134px;
}

.moisture-dot--three {
  right: 52px;
  top: 176px;
}

.form-panel,
.result-panel {
  scroll-margin-top: 24px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 36px);
}

.form-panel.is-active,
.result-panel.is-active {
  display: block;
}

.progress-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 280px);
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.progress-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3e4;
}

.progress-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 240ms ease;
}

.question-card {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.question-help {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

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

.answer-option {
  position: relative;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 18px 18px 18px 52px;
  cursor: pointer;
  text-align: left;
  transition: border 160ms ease, background 160ms ease, transform 160ms ease;
}

.answer-option:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.answer-option::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 18px;
  height: 18px;
  border: 2px solid #b8c7a6;
  border-radius: 50%;
}

.answer-option.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.answer-option.is-selected::before {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--brand);
}

.answer-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 500;
}

.answer-option span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 300;
}

.nav-row {
  justify-content: space-between;
  margin-top: 24px;
}

.result-header {
  max-width: 760px;
}

.result-header p:last-child {
  color: var(--muted);
  line-height: 1.8;
}

.score-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0;
  padding: 20px;
  border-radius: 8px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
}

.score-ring {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) 0deg, #ffffff 0deg);
}

.score-ring span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  font-size: 1.35rem;
  font-family: "ABeeZee", "Kanit", sans-serif;
  font-weight: 400;
}

#scoreText {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

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

.insight-grid article,
.offer-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

ul {
  margin: 0;
  padding-left: 22px;
}

li {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
}

.offer-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  border-color: var(--line);
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-soft) 100%);
}

.offer-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

.offer-band h3 {
  margin-top: 6px;
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 24px, 680px);
    padding-top: 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0 22px;
  }

  .hero__visual {
    order: -1;
  }

  .window-card {
    width: min(100%, 360px);
  }

  .progress-wrap,
  .answer-grid,
  .insight-grid,
  .offer-band {
    grid-template-columns: 1fr;
  }

  .score-card {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 20px, 440px);
  }

  h1 {
    font-size: 2.15rem;
  }

  .hero__copy {
    font-size: 1rem;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .time-note {
    width: 100%;
    text-align: center;
  }

  .answer-option {
    min-height: 84px;
  }

  .score-card {
    display: block;
  }

  .score-ring {
    margin-bottom: 16px;
  }
}
