:root {
  --bg: #ffffff;
  --surface: #f4f7f1;
  --surface-strong: #e8efe3;
  --ink: #102018;
  --muted: #536257;
  --line: #d8e0d5;
  --accent: #1f5a36;
  --accent-soft: #6c8b64;
  --warm: #f6f0e8;
  --shadow: 0 18px 55px rgba(20, 39, 28, 0.11);
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

img,
svg {
  display: block;
}

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

button,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  height: 74px;
  padding: 0 clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 224, 213, 0.75);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--accent-soft);
}

.brand-mark svg,
.icon-circle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #253329;
  font-size: 0.92rem;
  font-weight: 600;
}

.desktop-nav a {
  padding: 8px 0;
}

.desktop-nav a:hover {
  color: var(--accent);
}

.header-cta {
  justify-self: end;
  min-width: 132px;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 18px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(31, 90, 54, 0.2);
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(480px, 1fr);
  min-height: calc(100vh - 74px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 9vw, 108px) clamp(24px, 5vw, 72px);
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 670px;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.6vw, 5.8rem);
  line-height: 0.98;
  font-weight: 700;
}

.hero-copy p {
  max-width: min(520px, 100%);
  color: #33443a;
  font-size: 1.07rem;
}

.hero-note {
  margin: 8px 0 28px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(31, 90, 54, 0.18);
}

.button.secondary {
  background: #ffffff;
  color: var(--accent);
}

.button.compact {
  min-height: 40px;
  padding: 9px 16px;
}

.hero-media {
  position: relative;
  min-height: 480px;
  margin: 0;
  overflow: hidden;
}

.hero-media::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 34%;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.72) 42%, rgba(255, 255, 255, 0) 100%);
  content: "";
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-section,
.patterns-section,
.deeper-section,
.plan-section,
.scripts-section,
.help-section {
  padding: clamp(54px, 7vw, 90px) clamp(22px, 5vw, 72px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1fr);
  gap: clamp(38px, 8vw, 120px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
  font-weight: 600;
}

h3 {
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 600;
}

.section-copy p,
.section-heading p,
.deeper-section > div:first-child p,
.help-section p {
  max-width: 680px;
  color: var(--muted);
}

.reflection-panel,
.pattern-detail,
.help-note {
  border: 1px solid rgba(216, 224, 213, 0.88);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--surface), #ffffff);
  box-shadow: var(--shadow);
}

.reflection-panel {
  padding: clamp(22px, 4vw, 34px);
}

.reflection-panel p,
.reflection-panel label {
  color: #34443a;
  font-size: 0.95rem;
}

.reflection-panel label {
  display: block;
  margin: 20px 0 8px;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid #ccd7ca;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 90, 54, 0.12);
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.save-status,
.copy-status {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.patterns-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.pattern-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.pattern-tab {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 146px;
  border: 0;
  background: #ffffff;
  color: var(--ink);
  padding: 24px;
  cursor: pointer;
  text-align: left;
}

.pattern-tab.active {
  background: var(--surface);
}

.pattern-tab strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.pattern-tab span:last-child {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.icon-circle {
  grid-row: span 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #b9c8b4;
  border-radius: 50%;
  color: var(--accent-soft);
}

.icon-circle svg {
  width: 25px;
  height: 25px;
}

.pattern-detail {
  position: sticky;
  top: 98px;
  padding: 30px;
}

.pattern-detail p {
  color: var(--muted);
}

.practice-box {
  margin-top: 24px;
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px;
}

.practice-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.deeper-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(340px, 1fr);
  gap: clamp(36px, 7vw, 86px);
  background: var(--surface);
}

.insight-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
}

.insight-list article {
  background: rgba(255, 255, 255, 0.78);
  padding: 24px;
}

.insight-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.week-card {
  display: flex;
  min-height: 282px;
  flex-direction: column;
  background: #ffffff;
  padding: 28px;
}

.week-number {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.week-card p {
  color: var(--muted);
}

.week-card label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  color: #28382e;
  font-size: 0.92rem;
  font-weight: 600;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.scripts-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 84px);
  background: linear-gradient(90deg, #ffffff, var(--warm));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.script-list {
  display: grid;
  gap: 12px;
}

.script-list button {
  border: 1px solid #d9d2c8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: #24342a;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  line-height: 1.55;
}

.script-list button:hover {
  border-color: var(--accent);
}

.help-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(34px, 7vw, 92px);
}

.help-note {
  padding: 28px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(22px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
  }

  .menu-button span {
    width: 19px;
    height: 2px;
    background: var(--ink);
  }

  .mobile-nav {
    position: fixed;
    top: 74px;
    right: 18px;
    z-index: 19;
    display: none;
    min-width: 210px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .mobile-nav.open {
    display: grid;
  }

  .mobile-nav a {
    padding: 12px 14px;
    font-weight: 700;
  }

  .hero,
  .split-section,
  .patterns-layout,
  .deeper-section,
  .scripts-section,
  .help-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 34px;
  }

  .hero-media {
    min-height: 380px;
    order: -1;
  }

  .hero-media::before {
    inset: auto 0 0;
    width: auto;
    height: 36%;
    background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 12px;
  }

  .pattern-detail {
    position: static;
  }

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

@media (max-width: 680px) {
  .site-header {
    height: 66px;
    gap: 12px;
    padding: 0 18px;
  }

  .brand {
    font-size: 1.22rem;
  }

  .mobile-nav {
    top: 66px;
    left: 18px;
    right: 18px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 11.2vw, 3.35rem);
    line-height: 1.03;
  }

  .hero-media {
    min-height: 265px;
  }

  .hero-copy {
    padding: 52px 24px 34px;
  }

  .hero-actions,
  .panel-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .split-section,
  .patterns-section,
  .deeper-section,
  .plan-section,
  .scripts-section,
  .help-section {
    padding: 48px 18px;
  }

  .pattern-tabs,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .pattern-tab {
    min-height: 128px;
    padding: 20px;
  }

  .site-footer {
    display: grid;
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
