:root {
  --color-primary: #4A7C6F;
  --color-primary-dark: #3A6359;
  --color-primary-soft: #E8F1EE;
  --color-accent: #C9973E;
  --color-text: #2D2D2D;
  --color-text-light: #5A5A5A;
  --color-text-muted: #7A7A7A;
  --color-bg: #FAFAF7;
  --color-bg-card: #FFFFFF;
  --color-border: #E2E8E5;
  --color-white: #FFFFFF;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --max-width: 560px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(74, 124, 111, 0.08);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(74, 124, 111, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 151, 62, 0.08), transparent 50%),
    var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Fully centered page — grid avoids flex min-width overflow traps */
main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  width: 100%;
  box-sizing: border-box;
}

.page {
  width: min(100%, var(--max-width));
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 auto;
  color: var(--color-text);
  position: relative;
  padding-bottom: 0;
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Ornament sits midway between the title and the boxes below */
.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px auto;
  width: 100%;
}

.title-ornament::before,
.title-ornament::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary) 40%,
    var(--color-accent)
  );
}

.title-ornament::after {
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-primary) 60%,
    transparent
  );
}

.title-ornament span {
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  transform: rotate(45deg);
  border-radius: 1px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201, 151, 62, 0.15);
}

/* Shared section chrome */
.section {
  margin: 0 auto;
  width: 100%;
  text-align: center;
  padding-top: 0;
  border-top: none;
}

/* Divider sits midway between the two white-box groups */
.section + .section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

/* What it does — benefit tiles (same chrome as phase cards) */
.benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.benefit:hover {
  border-color: rgba(74, 124, 111, 0.35);
  box-shadow: 0 6px 24px rgba(74, 124, 111, 0.12);
}

.benefit span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

/* How it works — three phases */
.parts {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.part {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.part:hover {
  border-color: rgba(74, 124, 111, 0.35);
  box-shadow: 0 6px 24px rgba(74, 124, 111, 0.12);
}

.part-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0 auto 14px;
}

.part-body {
  width: 100%;
  text-align: center;
}

.part-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
  line-height: 1.3;
  text-align: center;
}

.part-body p {
  color: var(--color-text-light);
  font-size: 0.98rem;
  line-height: 1.7;
  text-align: center;
  max-width: 36em;
  margin: 0 auto;
}

/* Button */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 14px rgba(74, 124, 111, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-align: center;
  margin: 0 auto;
}

.btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74, 124, 111, 0.3);
}

/* Space before the CTA */
.section:last-of-type {
  margin-bottom: 40px;
}

@media (max-width: 480px) {
  main { padding: 36px 16px; }
  h1 { font-size: 1.75rem; }
  .title-ornament { margin: 32px auto; gap: 12px; }
  .title-ornament::before,
  .title-ornament::after { width: 32px; }
  .section + .section {
    margin-top: 32px;
    padding-top: 32px;
  }
  .section:last-of-type { margin-bottom: 32px; }
  .benefits { gap: 10px; }
  .benefit { padding: 18px 16px; }
  .benefit span { font-size: 1.05rem; }
  .part { padding: 22px 18px 20px; }
  .part-body h3 { font-size: 1.15rem; }
}
