:root {
  --bg: #f7f1e8;
  --bg-soft: #fbf7f0;
  --surface: rgba(255, 251, 245, 0.86);
  --surface-strong: #fffaf3;
  --line: rgba(103, 106, 82, 0.18);
  --text: #433a31;
  --muted: #72685d;
  --sage: #98a17b;
  --sage-deep: #5f6e51;
  --terracotta: #bb7559;
  --terracotta-deep: #9e5c42;
  --honey: #e7d7a8;
  --shadow: 0 24px 70px rgba(84, 72, 58, 0.12);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(231, 215, 168, 0.45), transparent 30%),
    radial-gradient(circle at top right, rgba(152, 161, 123, 0.22), transparent 28%),
    linear-gradient(180deg, #f8f4ec 0%, #f7efe5 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.52;
}

.page-shell::before {
  top: -6rem;
  left: -3rem;
  width: 18rem;
  height: 18rem;
  background: rgba(231, 215, 168, 0.6);
}

.page-shell::after {
  right: -6rem;
  top: 12rem;
  width: 22rem;
  height: 22rem;
  background: rgba(187, 117, 89, 0.12);
}

.site-header,
.section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 251, 245, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(73, 63, 52, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 0.95rem;
  height: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sage) 0%, var(--terracotta) 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.96rem;
}

.site-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 0.78rem 1.05rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--sage-deep), var(--terracotta));
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(95, 110, 81, 0.2);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(152, 161, 123, 0.1);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.22rem auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.section {
  padding: 4.5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  column-gap: 2.2rem;
  row-gap: 1.2rem;
  align-items: center;
  min-height: calc(100vh - 7rem);
  padding-top: 5rem;
}

.hero-copy-intro,
.hero-copy-actions {
  grid-column: 1;
}

.hero-copy-intro {
  max-width: 42rem;
}

.hero-copy-actions {
  align-self: start;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--terracotta-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  max-width: 12ch;
}

h3 {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}

p {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.hero-text {
  max-width: 52ch;
  margin-top: 1.35rem;
  font-size: 1.04rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-copy-actions .hero-actions {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sage-deep), var(--terracotta));
  box-shadow: 0 16px 36px rgba(95, 110, 81, 0.2);
}

.button-footer {
  width: auto;
  padding: 0.92rem 1.35rem;
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(95, 110, 81, 0.12);
  white-space: nowrap;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 251, 245, 0.75);
  border-color: rgba(103, 106, 82, 0.18);
}

.check-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text);
}

.check-list li + li {
  margin-top: 0.9rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--terracotta));
  transform: translateY(-50%);
}

.hero-visual {
  position: relative;
}

.hero-card,
.portrait-frame,
.gallery-item,
.feature-box,
.card,
.intro-card,
.timeline-step,
.cta-shell {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card {
  width: min(100%, 24rem);
  padding: 1rem;
  margin-left: auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(247, 241, 232, 0.96), rgba(231, 215, 168, 0.42));
}

.hero-card img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 0.7rem);
}

.hero-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.grid.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  padding: 1.7rem;
  border-radius: var(--radius-md);
}

.feature-layout .section-heading {
  margin-bottom: 2.2rem;
}

.feature-layout .section-heading h2 {
  max-width: none;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
  gap: 1.2rem;
  align-items: start;
}

.diagnosis-block {
  padding: 1.9rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.diagnosis-block h3 {
  margin-bottom: 1rem;
}

.diagnosis-block-primary {
  background:
    radial-gradient(circle at top left, rgba(231, 215, 168, 0.28), transparent 42%),
    rgba(255, 251, 245, 0.88);
}

.diagnosis-block-secondary {
  background:
    radial-gradient(circle at top left, rgba(152, 161, 123, 0.18), transparent 42%),
    rgba(255, 251, 245, 0.88);
}

.result-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text);
}

.result-list li + li {
  margin-top: 0.95rem;
}

.result-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage-deep);
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.timeline-step {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--terracotta-deep);
  font-weight: 800;
  background: rgba(231, 215, 168, 0.55);
  border-radius: 50%;
}

.profile-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.2rem;
  align-items: center;
}

.portrait-frame {
  width: min(100%, 24rem);
  padding: 1rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: min(2.2rem, 7vw);
  background: linear-gradient(180deg, rgba(247, 241, 232, 0.96), rgba(231, 215, 168, 0.32));
}

.portrait-frame img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 0.7rem);
}

.cta-section {
  padding-bottom: 6rem;
}

.cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 2.8rem;
  padding: 2.35rem 2.5rem;
  border-radius: calc(var(--radius-lg) + 0.6rem);
  background:
    radial-gradient(circle at top right, rgba(231, 215, 168, 0.4), transparent 36%),
    linear-gradient(135deg, rgba(255, 251, 245, 0.92), rgba(247, 241, 232, 0.92));
}

.cta-copy h2 {
  max-width: 10ch;
  font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  line-height: 0.94;
}

.cta-copy p:last-child {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.cta-inline-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(187, 117, 89, 0.55);
  text-underline-offset: 0.16em;
}

.cta-actions {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.95rem;
}

.small-note {
  align-self: flex-start;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-weight: 600;
  background: rgba(255, 251, 245, 0.7);
  border: 1px solid rgba(103, 106, 82, 0.12);
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .hero,
  .profile-layout,
  .cta-shell,
  .diagnosis-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .hero-copy-intro,
  .hero-copy-actions,
  .hero-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-visual {
    max-width: 42rem;
  }

  .hero-card {
    width: min(100%, 24rem);
    margin-left: 0;
  }

  .cta-copy h2 {
    max-width: none;
  }

  .timeline,
  .grid.three-up {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 0.6rem;
    flex-wrap: wrap;
    border-radius: 1.75rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-top: 0.5rem;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero-card {
    width: 100%;
  }

  .hero {
    gap: 1rem;
    padding-top: 1.6rem;
    align-items: start;
  }

  .hero-copy-intro,
  .hero-copy-actions {
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    width: 100%;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    margin-top: 0.2rem;
  }

  .eyebrow {
    margin-bottom: 0.85rem;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.65rem, 11.4vw, 3.35rem);
    line-height: 0.9;
    letter-spacing: -0.035em;
  }

  .hero-text {
    display: none;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    margin-top: 1.35rem;
  }

  .hero-actions .button {
    width: 100%;
    padding: 0.95rem 1.05rem;
    font-size: 0.94rem;
  }

  .hero-actions .button-secondary {
    background: rgba(255, 251, 245, 0.82);
    border-color: rgba(103, 106, 82, 0.12);
  }

  .hero-card {
    width: min(72vw, 16rem);
    margin: 0 auto;
    border-radius: 1.25rem;
  }

  .section {
    padding: 3.7rem 0;
  }

  .cta-copy h2 {
    max-width: 8ch;
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .cta-copy p:last-child {
    font-size: 0.97rem;
    line-height: 1.62;
  }

  .cta-actions {
    width: 100%;
    align-items: stretch;
  }

  .button-footer,
  .small-note {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .card,
  .timeline-step,
  .diagnosis-block,
  .cta-shell {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
