/* GoalTree Website Styles
   Premium, minimal, botanical design
   Colors: Forest Green #356300, App Green #34C759, Light Grey #F5F5F7
*/

/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Primary Colors */
  --forest-green: #356300;
  --sage-green: #376402;
  --app-green: #34C759;
  --light-grey: #F5F5F7;
  --dark-grey: #1D1D1F;
  --white: #FFFFFF;

  /* Botanical Accent Colors */
  --grey-blue: #8FA5A8;
  --muted-sage: #A3B18A;
  --dusty-green: #94A89A;

  /* UI Colors */
  --caption-grey: #6B6B6B;
  --border-light: #E5E5E7;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Container */
  --container-max: 1200px;
  --content-max: 720px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--dark-grey);
  background-color: var(--light-grey);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

/* Emphasis - one word in green */
.highlight {
  color: var(--app-green);
}

a {
  color: var(--app-green);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

a:focus-visible {
  outline: 2px solid var(--app-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-grey);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ===== Layout ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.content-narrow {
  max-width: var(--content-max);
  margin: 0 auto;
}

section {
  padding: var(--space-3xl) 0;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  background: rgba(245, 245, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--dark-grey);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--dark-grey);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--app-green);
  opacity: 1;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--dark-grey);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--dark-grey);
  color: var(--white);
}

.btn-primary:hover {
  background: #2D2D2F;
  opacity: 1;
}

.btn-secondary {
  background: var(--white);
  color: var(--dark-grey);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--dark-grey);
  opacity: 1;
}

/* App Store Badge */
.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  overflow: visible;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Botanical Design System ===== */

/* Hero botanical framing - prominent, intentional placement */
.hero-botanical {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero-botanical-left {
  top: -5%;
  left: -2%;
  width: 280px;
  height: auto;
  opacity: 0.75;
  transform: rotate(-10deg);
  filter: drop-shadow(0 4px 12px rgba(143, 165, 168, 0.15));
}

.hero-botanical-right {
  top: -8%;
  right: -3%;
  width: 320px;
  height: auto;
  opacity: 0.7;
  transform: rotate(15deg) scaleX(-1);
  filter: drop-shadow(0 4px 12px rgba(143, 165, 168, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--space-lg);
}

/* Section divider - olive branch */
.section-divider {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  display: block;
  opacity: 0.6;
}

/* Botanical accents for sections */
.botanical-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}

.botanical-accent-left {
  left: 2%;
  width: 180px;
  transform: rotate(-20deg);
}

.botanical-accent-right {
  right: 2%;
  width: 180px;
  transform: rotate(20deg) scaleX(-1);
}

/* Scattered leaves background */
.has-botanical-bg {
  position: relative;
}

.has-botanical-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/leaf-scatter.svg');
  background-size: 600px;
  background-position: center;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.has-botanical-bg > * {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: var(--white);
  color: var(--forest-green);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
  border: 1px solid var(--border-light);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--caption-grey);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.5;
}

/* ===== Problem Section ===== */
.problem {
  background: var(--white);
}

.problem-content {
  max-width: var(--content-max);
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--app-green);
  margin-bottom: var(--space-sm);
}

.problem p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--caption-grey);
}

/* ===== Solution Section ===== */
.solution {
  text-align: center;
}

.solution-content {
  max-width: 800px;
  margin: 0 auto;
}

.solution p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--caption-grey);
}

/* ===== 8-Tier System Section ===== */
.tiers {
  background: var(--white);
  text-align: center;
}

.tier-visual {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: var(--space-xl) 0;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-grey);
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark-grey);
  transition: all 0.2s ease;
}

.tier-pill:hover {
  background: var(--app-green);
  color: var(--white);
}

.tier-arrow {
  color: var(--grey-blue);
  font-size: 1.25rem;
}

.tier-tagline {
  font-size: 1.25rem;
  color: var(--caption-grey);
  font-style: italic;
}

/* ===== Features Section ===== */
.features {
  text-align: center;
}

.features h2 {
  margin-bottom: var(--space-xl);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: 16px;
  text-align: left;
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--light-grey);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--app-green);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--caption-grey);
  margin: 0;
  line-height: 1.6;
}

.pricing-card {
  max-width: 520px;
  margin: var(--space-xl) auto 0;
  background: var(--light-grey);
  padding: var(--space-xl);
  border-radius: 20px;
  border: 2px solid var(--border-light);
}

.pricing-card h3 {
  font-size: 1.125rem;
  color: var(--caption-grey);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.pricing-free {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.pricing-free p {
  font-size: 1.125rem;
  margin: 0;
}

.pricing-premium h3 {
  margin-bottom: var(--space-md);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-grey);
  margin-bottom: var(--space-xs);
}

.price-note {
  font-size: 0.9375rem;
  color: var(--app-green);
  font-weight: 500;
}

/* ===== Final CTA Section ===== */
.cta {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.cta-botanical-left {
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 220px;
  height: auto;
  opacity: 0.5;
  transform: rotate(25deg);
  pointer-events: none;
}

.cta-botanical-right {
  position: absolute;
  bottom: 5%;
  right: -5%;
  width: 200px;
  height: auto;
  opacity: 0.45;
  transform: rotate(-20deg) scaleX(-1);
  pointer-events: none;
}

.cta h2 {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.cta .app-store-badge {
  position: relative;
  z-index: 1;
}

/* Pricing section botanical frame */
.pricing {
  background: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-botanical-left {
  position: absolute;
  top: 50%;
  left: -8%;
  width: 200px;
  height: auto;
  opacity: 0.4;
  transform: translateY(-50%) rotate(-15deg);
  pointer-events: none;
}

.pricing-botanical-right {
  position: absolute;
  top: 50%;
  right: -8%;
  width: 200px;
  height: auto;
  opacity: 0.35;
  transform: translateY(-50%) rotate(15deg) scaleX(-1);
  pointer-events: none;
}

/* ===== Footer ===== */
.footer {
  background: var(--white);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--caption-grey);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--caption-grey);
}

.footer-links a:hover {
  color: var(--dark-grey);
  opacity: 1;
}

/* ===== Privacy & Support Pages ===== */
.page-header {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
}

.page-content {
  background: var(--white);
  padding: var(--space-3xl) 0;
}

.page-content .content-narrow {
  padding: 0 var(--space-md);
}

.page-content h2 {
  font-size: 1.5rem;
  margin: var(--space-xl) 0 var(--space-sm);
  padding-top: var(--space-md);
}

.page-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

.page-content h3 {
  font-size: 1.25rem;
  margin: var(--space-lg) 0 var(--space-sm);
}

.page-content p {
  line-height: 1.7;
  color: var(--caption-grey);
}

.page-content ul, .page-content ol {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
  color: var(--caption-grey);
  line-height: 1.7;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.last-updated {
  font-size: 0.9375rem;
  color: var(--caption-grey);
  margin-top: var(--space-xs);
}

/* Support page specific */
.contact-box {
  background: var(--light-grey);
  padding: var(--space-lg);
  border-radius: 12px;
  margin: var(--space-lg) 0;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--app-green);
}

.faq-item {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  color: var(--dark-grey);
  margin-bottom: var(--space-sm);
}

.faq-item p {
  margin: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  /* Reduce botanical sizes on tablets */
  .hero-botanical-left,
  .hero-botanical-right {
    width: 200px;
    opacity: 0.6;
  }

  .pricing-botanical-left,
  .pricing-botanical-right,
  .cta-botanical-left,
  .cta-botanical-right {
    width: 150px;
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--space-2xl) 0;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  /* Mobile menu (when active) */
  .nav.active .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    gap: var(--space-md);
  }

  /* Botanicals on mobile - smaller and more subtle */
  .hero {
    min-height: auto;
    padding: var(--space-2xl) 0;
  }

  .hero-botanical-left {
    top: -2%;
    left: -15%;
    width: 150px;
    opacity: 0.5;
  }

  .hero-botanical-right {
    top: auto;
    bottom: -5%;
    right: -15%;
    width: 140px;
    opacity: 0.45;
  }

  .pricing-botanical-left,
  .pricing-botanical-right {
    display: none;
  }

  .cta-botanical-left,
  .cta-botanical-right {
    width: 120px;
    opacity: 0.35;
  }

  .section-divider {
    max-width: 300px;
    opacity: 0.5;
  }

  .tier-visual {
    flex-direction: column;
    align-items: center;
  }

  .tier-arrow {
    transform: rotate(90deg);
  }

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

  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .app-store-badge img {
    height: 48px;
  }
}

@media (max-width: 480px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .pricing-card {
    padding: var(--space-lg);
  }

  .price {
    font-size: 2rem;
  }
}

/* ===== Print Styles ===== */
@media print {
  .header,
  .footer,
  .skip-link,
  .app-store-badge {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
