:root {
  color-scheme: light;
  --background: #faf9f6;
  --surface: #f4f4f0;
  --surface-strong: #e8e8e5;
  --surface-light: #ffffff;
  --ink: #1a1c1a;
  --muted: #424843;
  --quiet: #727973;
  --line: #c2c8c1;
  --primary: #2d4b3a;
  --primary-deep: #163425;
  --primary-soft: #c8ebd3;
  --terra: #c25e44;
  --terra-soft: #ffdbd2;
  --rose: #efb9bb;
  --obsidian: #2f312f;
  --blue-gray: #dce5e2;
  --shadow: 0 24px 70px rgba(22, 52, 37, 0.14);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: rgba(45, 75, 58, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 48px);
  background: rgba(250, 249, 246, 0.9);
  border-bottom: 1px solid rgba(194, 200, 193, 0.62);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.58) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(255, 255, 255, 0.48) 45% 55%, transparent 55%),
    var(--terra);
  box-shadow: inset 0 0 0 2px rgba(22, 52, 37, 0.16);
  overflow: hidden;
  font-size: 0;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
}

.current-page {
  color: var(--primary-deep);
}

.hero-section {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: center;
  padding: clamp(72px, 9vw, 112px) clamp(20px, 5vw, 48px) clamp(36px, 6vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(250, 249, 246, 0.94) 0 40%, rgba(250, 249, 246, 0.72) 68%, rgba(250, 249, 246, 0.42)),
    radial-gradient(circle at 82% 24%, rgba(200, 235, 211, 0.72), transparent 34%),
    linear-gradient(150deg, #faf9f6 0%, #f4f4f0 48%, #dce5e2 100%);
}

.hero-art {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: clamp(8px, 7vw, 96px);
  pointer-events: none;
}

.phone-shell {
  width: min(38vw, 390px);
  min-width: 280px;
  aspect-ratio: 0.49;
  padding: 12px;
  border-radius: 46px;
  background: var(--obsidian);
  box-shadow: var(--shadow);
  transform: rotate(5deg) translateX(4%);
}

.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 22px;
  border-radius: 36px;
  background: #faf9f6;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.app-topbar,
.timeline,
.streak-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.app-topbar {
  color: var(--primary-deep);
  font-weight: 700;
}

.status-pill,
.feature-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #faf9f6 0 55%, transparent 56%),
    conic-gradient(var(--primary) 0 68%, rgba(45, 75, 58, 0.16) 68% 100%);
}

.progress-ring div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.ring-label,
.timeline span,
.streak-row span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.progress-ring strong {
  color: var(--primary-deep);
  font-size: clamp(44px, 6vw, 62px);
  line-height: 1;
  font-weight: 750;
}

.timeline {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(194, 200, 193, 0.7);
}

.timeline div {
  display: grid;
  gap: 3px;
}

.timeline div:last-child {
  text-align: right;
}

.timeline strong,
.streak-row strong {
  color: var(--ink);
}

.streak-row {
  padding-bottom: 2px;
}

.break-button {
  margin-top: auto;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--terra-soft);
  color: #74240f;
  text-align: center;
  font-weight: 800;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--terra);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--primary-deep);
  font-size: clamp(4rem, 14vw, 9.25rem);
  line-height: 0.92;
  font-weight: 760;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--primary-deep);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  font-weight: 720;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 570px;
  color: var(--muted);
  font-size: clamp(1.16rem, 2.5vw, 1.45rem);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(45, 75, 58, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.68);
  color: var(--primary-deep);
  border: 1px solid rgba(45, 75, 58, 0.2);
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.intro-band,
.safety-band {
  padding: clamp(44px, 7vw, 76px) 0;
}

.intro-band {
  background: var(--primary-deep);
  color: #edf4ef;
}

.intro-band h2,
.safety-band h2 {
  color: inherit;
}

.intro-band p {
  color: rgba(237, 244, 239, 0.78);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.feature-section,
.split-section,
.policy-layout,
.support-layout {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 280px;
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(194, 200, 193, 0.72);
}

.feature-card:nth-child(2) {
  background: var(--blue-gray);
}

.feature-card:nth-child(3) {
  background: #f8e8e2;
}

.feature-card:nth-child(4) {
  background: #edf1e9;
}

.feature-card h3 {
  margin-top: 42px;
}

.feature-card p,
.quiet-panel p,
.safety-content p,
.page-hero p,
.faq-list p,
.policy-layout p,
.contact-panel p,
.site-footer p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(240px, 0.72fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: stretch;
}

.quiet-panel {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
  background: var(--surface-light);
  border: 1px solid rgba(194, 200, 193, 0.72);
}

.check-list {
  display: grid;
  gap: 12px;
  align-content: center;
}

.check-list p {
  margin: 0;
  padding: 18px 20px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-deep);
  font-weight: 800;
  border: 1px solid rgba(194, 200, 193, 0.72);
}

.safety-band {
  background: #352427;
  color: #fff2ef;
}

.safety-content {
  max-width: 880px;
}

.safety-content p {
  color: rgba(255, 242, 239, 0.78);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 36px clamp(20px, 5vw, 48px);
  background: var(--surface);
  border-top: 1px solid rgba(194, 200, 193, 0.72);
}

.site-footer p {
  margin: 8px 0 0;
  font-size: 15px;
}

.page-hero {
  padding: clamp(72px, 10vw, 124px) 0 clamp(42px, 7vw, 80px);
  background:
    linear-gradient(135deg, rgba(200, 235, 211, 0.56), transparent 38%),
    var(--surface);
  border-bottom: 1px solid rgba(194, 200, 193, 0.72);
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 6.75rem);
}

.narrow {
  max-width: 820px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.contact-panel {
  position: sticky;
  top: 92px;
  padding: 26px;
  border-radius: 8px;
  background: var(--primary-deep);
  color: #ffffff;
}

.contact-panel h2 {
  color: inherit;
  font-size: 1.7rem;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel .button {
  width: 100%;
  margin-top: 10px;
  background: #ffffff;
  color: var(--primary-deep);
  overflow-wrap: anywhere;
}

.faq-list,
.policy-layout {
  display: grid;
  gap: 16px;
}

.faq-list article,
.policy-layout article {
  padding: 26px 0;
  border-bottom: 1px solid rgba(194, 200, 193, 0.78);
}

.faq-list article:first-child,
.policy-layout article:first-child {
  padding-top: 0;
}

.faq-list h2,
.policy-layout h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.policy-layout {
  max-width: 860px;
}

@media (max-width: 920px) {
  .hero-section {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-art {
    position: relative;
    justify-content: center;
    order: 2;
    padding: 28px 0 0;
  }

  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .phone-shell {
    width: min(80vw, 350px);
    transform: rotate(2deg);
  }

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

  .intro-grid,
  .split-section,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-section {
    padding-top: 40px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .phone-shell {
    width: min(92vw, 330px);
    min-width: 0;
    border-radius: 38px;
  }

  .phone-screen {
    gap: 16px;
    padding: 22px 18px;
    border-radius: 28px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-card h3 {
    margin-top: 28px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}
