:root {
  --color-green-primary: #1f8f63;
  --color-green-accent: #45b07c;
  --color-green-dark: #0b6a47;
  --color-bg-page: #f3f5ee;
  --color-bg-elevated: #f8faf5;
  --color-bg-surface: #e3eadf;
  --color-bg-dark: #141613;
  --color-bg-dark-card: #2a322d;
  --color-text-primary: #141413;
  --color-text-secondary: #445046;
  --color-text-tertiary: #5c695f;
  --color-text-muted: #859185;
  --color-border-light: #edf1e8;
  --color-border-default: #dde5d8;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-conversational: "Noteworthy", "Segoe Print", "Chalkboard", "Bradley Hand", cursive;
  --max-wide: 1100px;
  --max-text: 720px;
  --header-height: 84px;
  --transition-standard: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

.shell {
  width: min(calc(100% - 48px), var(--max-wide));
  margin: 0 auto;
}

.centered-shell {
  display: grid;
  justify-items: center;
}

.section {
  padding: 96px 0;
}

.section-light {
  background: var(--color-bg-page);
}

.section-ivory {
  background: var(--color-bg-elevated);
}

.section-sage {
  background: var(--color-bg-surface);
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading-centered {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.section-label,
.eyebrow {
  margin: 0 0 16px;
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow {
  color: var(--color-green-accent);
}

.section-label {
  color: var(--color-text-muted);
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
.privacy-promise h2,
.final-cta h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 600;
}

p {
  margin: 0;
}

.prose {
  display: grid;
  gap: 16px;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.section-copy .prose {
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: transform var(--transition-standard), background-color var(--transition-standard), color var(--transition-standard), border-color var(--transition-standard), box-shadow var(--transition-standard);
}

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

.button-primary {
  background: var(--color-green-primary);
  color: #fff;
  box-shadow: var(--shadow-card);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-green-dark);
}

.button-large {
  min-height: 56px;
  padding-inline: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 22, 19, 0.88);
  color: #f8faf5;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-standard), border-color var(--transition-standard), color var(--transition-standard);
}

body.scrolled-past-hero .site-header,
body.legal-page .site-header,
body.legal-page .legal-header {
  background: rgba(243, 245, 238, 0.94);
  border-color: var(--color-border-default);
  color: var(--color-text-primary);
}

.nav-shell,
.legal-header-shell,
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-shell,
.legal-header-shell {
  min-height: var(--header-height);
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.desktop-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav a,
.footer-links a,
.legal-back-link {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-standard), opacity var(--transition-standard);
}

.desktop-nav a:hover,
.footer-links a:hover,
.legal-back-link:hover {
  color: var(--color-green-primary);
}

.app-store-nav-link {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(237, 241, 232, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.scrolled-past-hero .app-store-nav-link {
  background: var(--color-green-primary);
  color: #fff;
  border-color: var(--color-green-primary);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.menu-toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.menu-toggle-bars {
  display: grid;
  gap: 4px;
}

.menu-toggle-bars span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-inner {
  display: grid;
  gap: 16px;
  padding: 0 0 24px;
}

.mobile-menu-inner a {
  text-decoration: none;
}

.hero-section,
.final-cta,
.site-footer {
  background: var(--color-bg-dark);
  color: #f8faf5;
}

.hero-section {
  min-height: min(100vh, 920px);
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 32px) 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 580px;
}

.hero-subheading {
  margin-top: 24px;
  max-width: 560px;
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 32px;
}

.secondary-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.phone-mockup {
  justify-self: end;
}

.phone-frame {
  width: min(100%, 390px);
  padding: 14px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(248, 250, 245, 0.18), rgba(248, 250, 245, 0.04)),
    linear-gradient(145deg, #445046, #1e221f);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.phone-island {
  width: 108px;
  height: 28px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #0d0f0d;
}

.phone-screen {
  padding: 18px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(69, 176, 124, 0.26), transparent 35%),
    linear-gradient(180deg, #f8faf5 0%, #eef3e7 100%);
  color: var(--color-text-primary);
  min-height: 650px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.screen-topbar,
.screen-list-row,
.widget-row,
.screen-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--color-green-primary);
  box-shadow: 0 0 0 6px rgba(31, 143, 99, 0.16);
}

.screen-card {
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(221, 229, 216, 0.9);
  box-shadow: var(--shadow-card);
}

.screen-card-primary {
  background: linear-gradient(180deg, rgba(31, 143, 99, 0.12), rgba(255, 255, 255, 0.96));
}

.screen-card h2 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}

.screen-label,
.screen-list-meta {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.screen-tags {
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.screen-tags span,
.widget-pill,
.widget-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.screen-tags span,
.widget-pill {
  background: rgba(227, 234, 223, 0.82);
  color: var(--color-text-secondary);
}

.screen-list p {
  margin-top: 12px;
  color: var(--color-text-secondary);
}

.widget-cta {
  background: rgba(31, 143, 99, 0.14);
  color: var(--color-green-dark);
}

.screen-notes-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.screen-note-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: start;
}

.screen-note-item p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}

.screen-note-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.28rem;
  border-radius: 999px;
  background: var(--color-green-primary);
  box-shadow: 0 0 0 4px rgba(31, 143, 99, 0.12);
}

.problem-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.pain-cards,
.steps,
.feature-grid,
.trust-grid {
  display: grid;
  gap: 20px;
}

.pain-cards {
  align-content: start;
  gap: 28px;
}

.pain-card,
.step-card,
.feature-card,
.comparison-card,
.faq-item,
.trust-card {
  border: 1px solid var(--color-border-default);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.pain-card {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.pain-card-right {
  justify-content: flex-end;
}

.pain-card-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(31, 143, 99, 0.12);
  color: var(--color-green-dark);
  border: 1px solid rgba(31, 143, 99, 0.16);
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.pain-card-avatar svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pain-card-avatar-muted {
  background: rgba(92, 105, 95, 0.12);
  color: var(--color-text-secondary);
  border-color: rgba(92, 105, 95, 0.14);
}

.pain-card-avatar-soft {
  background: rgba(69, 176, 124, 0.14);
  color: var(--color-green-primary);
}

.pain-card-bubble {
  max-width: 420px;
  padding: 24px 24px 22px;
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  display: grid;
  gap: 12px;
  font-size: 1.05rem;
  border: 1px solid var(--color-border-default);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.pain-card-left .pain-card-bubble {
  margin-left: -10px;
  padding-left: 34px;
}

.pain-card-right .pain-card-bubble {
  margin-right: -10px;
  padding-right: 34px;
}

.pain-card-label {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pain-card-bubble p:last-child {
  font-family: var(--font-conversational);
  font-size: 1.18rem;
  line-height: 1.45;
}

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

.step-card,
.feature-card,
.trust-card {
  background: #fff;
  padding: 28px;
}

.step-card {
  display: grid;
  gap: 18px;
}

.step-card > div:last-child {
  display: grid;
  gap: 12px;
}

.trust-card {
  display: grid;
  gap: 18px;
}

.step-icon,
.feature-icon,
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: rgba(31, 143, 99, 0.1);
  color: var(--color-green-primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.feature-card {
  background: #fff;
  display: grid;
  gap: 18px;
}

.feature-card p,
.step-card p,
.trust-card p {
  color: var(--color-text-tertiary);
}

.privacy-promise {
  background: linear-gradient(180deg, #1c211d 0%, #141613 100%);
  color: #fff;
}

.privacy-promise h2,
.final-cta h2 {
  font-size: clamp(2.2rem, 4.8vw, 3.2rem);
}

.privacy-intro,
.final-cta p {
  margin-top: 20px;
  color: #aeb8ae;
  font-size: 1.125rem;
}

.faq-intro {
  margin-top: 18px;
  color: var(--color-text-tertiary);
  font-size: 1.05rem;
}

.trust-grid {
  width: 100%;
  margin-top: 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card {
  background: var(--color-bg-dark-card);
  border-color: #394239;
}

.trust-card p {
  color: #c0c9c0;
}

.comparison-card {
  padding: 28px;
}

.comparison-card-muted {
  background: rgba(248, 250, 245, 0.62);
}

.comparison-card-positive {
  background: rgba(248, 250, 245, 0.95);
  border-left: 5px solid var(--color-green-primary);
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 14px;
}

.comparison-list li {
  position: relative;
  padding-left: 32px;
  color: var(--color-text-secondary);
}

.comparison-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 700;
}

.comparison-list-muted li::before {
  content: "x";
  color: #c65a5a;
}

.comparison-list-positive li::before {
  content: "✓";
  color: var(--color-green-primary);
}

.emotional-note {
  margin-top: 20px;
  color: var(--color-text-tertiary);
  font-style: italic;
}

.faq-shell {
  max-width: 720px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 auto;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 2px;
  background: var(--color-green-primary);
  transform: translate(-50%, -50%);
  transition: transform var(--transition-standard), opacity var(--transition-standard);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.5);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--color-text-tertiary);
}

.final-cta {
  text-align: center;
}

.final-cta .button {
  margin-top: 32px;
}

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a,
.footer-note {
  color: var(--color-text-muted);
}

.footer-note {
  font-size: 0.95rem;
}

.legal-page {
  background: var(--color-bg-page);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 245, 238, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-default);
}

.legal-main {
  padding-top: 56px;
}

.legal-shell {
  width: min(calc(100% - 48px), var(--max-text));
  margin: 0 auto;
}

.legal-shell h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.legal-prose {
  margin-top: 40px;
  color: var(--color-text-secondary);
}

.legal-prose h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.legal-prose hr {
  border: 0;
  border-top: 1px solid var(--color-border-default);
  margin: 24px 0;
}

.legal-prose ul {
  margin: 0;
  padding-left: 20px;
}

.legal-prose a {
  color: var(--color-green-dark);
}

@media (max-width: 980px) {
  .hero-grid,
  .problem-grid,
  .comparison-grid,
  .steps,
  .feature-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    justify-self: center;
  }

  .hero-copy {
    max-width: none;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .pain-card-bubble {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .shell,
  .legal-shell {
    width: min(calc(100% - 32px), var(--max-wide));
  }

  .section {
    padding: 80px 0;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 24px);
  }

  .phone-frame {
    width: min(100%, 360px);
  }

  .phone-screen {
    min-height: 560px;
  }
}
