:root {
  --ink: #17211e;
  --muted: #586861;
  --line: #dde6de;
  --panel: #fffdf8;
  --paper: #fbf7ef;
  --soft: #f4f1e8;
  --mint: #d8eee1;
  --sage: #8fbf9e;
  --teal: #0e6865;
  --deep-teal: #123533;
  --coral: #d86f5b;
  --gold: #ecc66f;
  --sky: #92c6d1;
  --focus: #0a746e;
  --shadow: 0 24px 70px rgba(32, 52, 45, 0.14);
  --soft-shadow: 0 14px 34px rgba(32, 52, 45, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(14, 104, 101, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(14, 104, 101, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, rgba(236, 198, 111, 0.22), transparent 42%),
    linear-gradient(315deg, rgba(146, 198, 209, 0.16), transparent 38%),
    var(--paper);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

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

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

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(520px, 1fr);
  gap: clamp(28px, 4vw, 62px);
  max-width: 1460px;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 58px);
  align-items: start;
}

.intro-panel {
  position: sticky;
  top: 28px;
  align-self: start;
  width: 100%;
  min-width: 0;
  padding-top: clamp(4px, 2vh, 24px);
}

.brand-lockup {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(221, 230, 222, 0.94);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  padding: 9px 12px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 42%),
    var(--teal);
  box-shadow: 0 14px 28px rgba(14, 104, 101, 0.22);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy span {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.1;
}

.brand-copy strong {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
}

.eyebrow {
  margin: 34px 0 12px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 660px;
  margin-bottom: 18px;
  color: #101a17;
  font-size: clamp(2.45rem, 5.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  color: #1a2824;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.64;
}

.secondary-link {
  margin-top: 18px;
  font-size: 0.97rem;
}

.secondary-link a {
  color: var(--teal);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.primary-inline-button,
.secondary-inline-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-inline-button {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(14, 104, 101, 0.2);
}

.secondary-inline-button {
  border: 1px solid #c8d8cf;
  background: rgba(255, 253, 248, 0.8);
  color: var(--deep-teal);
}

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

.primary-inline-button:hover {
  background: #0a5d5a;
  box-shadow: 0 18px 36px rgba(14, 104, 101, 0.26);
}

.secondary-inline-button:hover {
  background: #ffffff;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  min-width: 0;
  border: 1px solid rgba(221, 230, 222, 0.92);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  padding: 12px;
  box-shadow: 0 10px 24px rgba(32, 52, 45, 0.08);
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  color: var(--deep-teal);
  font-size: 0.9rem;
  line-height: 1.2;
}

.trust-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.hero-experience-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin: 28px 0 0;
  border: 1px solid rgba(221, 230, 222, 0.96);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-experience-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 37, 34, 0), rgba(14, 37, 34, 0.18)),
    linear-gradient(90deg, rgba(14, 37, 34, 0.08), rgba(14, 37, 34, 0));
  content: "";
  pointer-events: none;
}

.hero-experience-card picture,
.hero-experience-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-experience-card img {
  object-fit: cover;
  object-position: 60% center;
}

.hero-copy-panel {
  position: absolute;
  z-index: 1;
  inset: auto clamp(18px, 4vw, 34px) clamp(18px, 4vw, 34px);
  max-width: 560px;
  color: #ffffff;
}

.hero-copy-panel .eyebrow {
  margin: 0 0 12px;
  color: #f8df9b;
}

.hero-copy-panel h1 {
  max-width: 520px;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: clamp(2.35rem, 5.1vw, 4.55rem);
  text-wrap: balance;
}

.hero-copy-panel .intro-copy {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-copy-panel .hero-actions {
  margin-bottom: 0;
}

.hero-copy-panel .secondary-inline-button {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.hero-copy-panel .secondary-inline-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.sample-care-preview {
  position: relative;
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 18px 0 18px;
  border: 1px solid rgba(221, 230, 222, 0.96);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  padding: 18px;
  box-shadow: 0 18px 44px rgba(32, 52, 45, 0.16);
  z-index: 2;
}

.sample-care-preview::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--sky), var(--gold));
  content: "";
}

.preview-heading {
  display: block;
}

.preview-heading span,
.preview-list span {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-heading strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.12;
}

.preview-pet-row {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.preview-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--teal), #2e8f89);
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 900;
}

.preview-pet-row p,
.preview-pet-row strong {
  margin: 0;
}

.preview-pet-row p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.preview-pet-row strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  line-height: 1.25;
}

.preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-list li {
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.preview-list strong {
  display: block;
  margin-top: 4px;
  color: #263936;
  font-size: 0.92rem;
  line-height: 1.32;
}

.survey-panel,
.profile-form-panel,
.enrichment-plan-panel {
  position: relative;
  border: 1px solid rgba(221, 230, 222, 0.96);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.survey-panel::before,
.profile-form-panel::before,
.enrichment-plan-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--teal), var(--sky), var(--gold), var(--coral));
  content: "";
}

form {
  padding: clamp(22px, 3.4vw, 40px);
}

.form-intro-card {
  display: grid;
  gap: 7px;
  margin-bottom: 22px;
  border: 1px solid #dbe7df;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 238, 225, 0.62), rgba(255, 248, 234, 0.7)),
    #ffffff;
  padding: 16px 18px;
}

.form-intro-card span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-intro-card h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.18;
}

.form-intro-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.progress-wrap {
  height: 9px;
  margin-bottom: 30px;
  border-radius: 999px;
  background: #e8eee8;
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--sky), var(--gold));
  transition: width 180ms ease;
}

.form-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

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

.step-pill {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #bfd8cb;
  border-radius: 50%;
  background: #edf7f0;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 900;
}

.section-heading p,
.privacy-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

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

.align-end {
  align-items: end;
}

.field,
.choice-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span,
.choice-group legend {
  color: #2d3f39;
  font-size: 0.9rem;
  font-weight: 850;
}

.choice-group {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #8a9891;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(10, 116, 110, 0.14);
}

.segmented,
.checkbox-grid {
  display: grid;
  gap: 10px;
}

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

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

.segmented label,
.checkbox-grid label,
.consent-row {
  display: flex;
  min-width: 0;
  min-height: 48px;
  gap: 10px;
  align-items: center;
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.segmented label:hover,
.checkbox-grid label:hover,
.consent-row:hover {
  border-color: #9cb8ac;
  background: #fbfdf9;
}

.segmented input,
.checkbox-grid input,
.consent-row input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.segmented span,
.checkbox-grid span,
.consent-row span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.segmented label:has(input:checked),
.checkbox-grid label:has(input:checked),
.consent-row:has(input:checked) {
  border-color: var(--teal);
  background: #edf8f1;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.privacy-note {
  max-width: 420px;
}

.submit-button {
  display: inline-flex;
  min-height: 54px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(14, 104, 101, 0.23);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.submit-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.submit-button:hover {
  background: #0a5d5a;
  box-shadow: 0 18px 34px rgba(14, 104, 101, 0.28);
  transform: translateY(-1px);
}

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

.error-message {
  min-height: 18px;
  color: #b54438;
  font-size: 0.8rem;
  font-weight: 800;
}

.is-invalid input,
.is-invalid select,
.is-invalid textarea,
.choice-group.is-invalid .segmented label,
.choice-group.is-invalid .checkbox-grid label {
  border-color: #c94b3c;
}

.form-message {
  display: none;
  margin-top: 18px;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 800;
  line-height: 1.45;
}

.form-message.is-visible {
  display: block;
}

.form-message.success {
  background: #e7f5ec;
  color: #1b6042;
}

.form-message.error {
  background: #fdecea;
  color: #a43b30;
}

.care-ideas-result {
  margin: 0 clamp(18px, 3.2vw, 36px) clamp(18px, 3.2vw, 36px);
  border: 1px solid #e2d8c5;
  border-radius: 8px;
  background: #fff8ea;
  overflow: hidden;
}

.result-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eadfc8;
}

.result-heading .eyebrow {
  margin: 0 0 6px;
}

.result-heading h2 {
  margin: 0;
}

.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal);
  padding: 0 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.secondary-button:hover {
  background: #eef8f1;
}

.care-ideas-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.care-ideas-body section {
  border: 1px solid #d7e4dc;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.care-ideas-body h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.care-ideas-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.care-ideas-body li {
  color: #31413c;
  line-height: 1.5;
}

@media (min-width: 1180px) {
  .segmented {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .page-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .intro-panel {
    position: static;
    padding-top: 0;
  }

  h1 {
    max-width: 820px;
  }

  .intro-copy {
    max-width: 720px;
  }

  .hero-experience-card,
  .sample-care-preview {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  body {
    background-size: 22px 22px, 22px 22px, auto, auto, auto;
  }

  .page-shell {
    padding: 14px;
  }

  .brand-lockup {
    width: 100%;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  .eyebrow {
    margin-top: 28px;
  }

  h1 {
    font-size: clamp(2.25rem, 14vw, 3.5rem);
  }

  .hero-actions,
  .form-actions,
  .result-heading {
    display: grid;
  }

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

  .trust-row,
  .preview-list,
  .two-col,
  .segmented,
  .checkbox-grid,
  .care-ideas-body {
    grid-template-columns: 1fr;
  }

  form {
    padding: 22px 16px;
  }

  .survey-panel,
  .profile-form-panel,
  .enrichment-plan-panel,
  .hero-experience-card,
  .sample-care-preview {
    box-shadow: 0 14px 38px rgba(32, 52, 45, 0.12);
  }

  .hero-experience-card {
    aspect-ratio: 4 / 3;
    margin-top: 22px;
  }

  .hero-experience-card::after {
    background:
      linear-gradient(180deg, rgba(14, 37, 34, 0), rgba(14, 37, 34, 0.16));
  }

  .hero-experience-card img {
    object-position: 60% center;
  }

  .sample-care-preview {
    margin: 16px 0 18px;
  }
}
