/* ===================================== */
/* SHARED STYLES - Dropply Landing Page */
/* Common styles used across all sections */
/* ===================================== */

/* ===================================== */
/* 1. CSS VARIABLES & DESIGN TOKENS */
/* Minimalist Zen Design for ADHD Focus */
/* ===================================== */

:root {
  /* Color Palette - Warm Analog Aesthetic (ADHD-Optimized) */
    --primary: #5F9EA0;           /* Cadet Blue - calming, balanced, focused */
    --primary-light: #81B4B6;     /* Lighter teal for hover/interactions */
    --primary-dark: #3F6B6C;      /* Deep ocean blue for depth and headers */
    --primary-subtle: #EDF4F5;    /* Mist blue background - reduces eye strain */


  --accent: #C97A5F;            /* Soft terracotta - warm, inviting */
  --accent-light: #E09980;      /* Lighter terracotta */
  --accent-dark: #A86148;       /* Darker terracotta */
  --accent-subtle: #F5E8E3;     /* Very light terracotta */

  --secondary: #4A5F7A;         /* Deep blue - trust, calm */
  --secondary-light: #6B8099;   /* Lighter blue */
  --secondary-dark: #344152;    /* Darker blue */

  --background: #F5F3EF;        /* Warm cream - not stark white */
  --background-pure: #FFFDFB;   /* Off-white with warmth */
  --card-bg: #FFFDFB;           /* Card backgrounds */
  --paper: #FAF8F4;             /* Paper texture color */

  --text-primary: #2D3436;      /* Almost black but warmer */
  --text-secondary: #636E72;    /* Medium warm gray */
  --text-muted: #95A5A6;        /* Light warm gray */

  --success: #7A9671;           /* Sage green */
  --warning: #C97A5F;           /* Terracotta */
  --border: #E0DDD8;            /* Warm border */
  --shadow: rgba(45, 52, 54, 0.08); /* Warm shadow */
  --focus-ring: #7A9671;        /* Sage green focus */

  /* Typography - Inter (Modern, ADHD-friendly) + Poppins (Headlines) */
  --font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* Modern, friendly headlines */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; /* Clean, readable body */

  --font-xs: 0.75rem;      /* 12px */
  --font-sm: 0.875rem;     /* 14px */
  --font-base: 0.95rem;    /* 15.2px - more compact */
  --font-lg: 1.125rem;     /* 18px */
  --font-xl: 1.25rem;      /* 20px */
  --font-2xl: 1.5rem;      /* 24px */
  --font-3xl: 1.875rem;    /* 30px */
  --font-4xl: 2.25rem;     /* 36px */
  --font-5xl: 2.75rem;     /* 44px */
  --font-6xl: 3.5rem;      /* 56px - reduced from 72px */

  /* Spacing Scale - More compact */
  --space-xs: 0.375rem;    /* 6px */
  --space-sm: 0.75rem;     /* 12px */
  --space-md: 1rem;        /* 16px */
  --space-lg: 1.5rem;      /* 24px */
  --space-xl: 2rem;        /* 32px */
  --space-2xl: 2.5rem;     /* 40px */
  --space-3xl: 3.5rem;     /* 56px */
  --space-4xl: 5rem;       /* 80px */

  /* Transitions - Subtle and calm */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows - Paper-like, tactile feel */
  --shadow-paper-sm: 0 2px 4px rgba(91, 117, 83, 0.08), 0 1px 2px rgba(91, 117, 83, 0.04);
  --shadow-paper-md: 0 4px 8px rgba(91, 117, 83, 0.12), 0 2px 4px rgba(91, 117, 83, 0.06);
  --shadow-paper-lg: 0 8px 16px rgba(91, 117, 83, 0.14), 0 4px 8px rgba(91, 117, 83, 0.08);
  --shadow-paper-xl: 0 12px 24px rgba(91, 117, 83, 0.16), 0 6px 12px rgba(91, 117, 83, 0.10);

  /* Button press shadows */
  --shadow-raised: 0 4px 8px rgba(91, 117, 83, 0.15), 0 2px 4px rgba(91, 117, 83, 0.08), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  --shadow-pressed: 0 1px 2px rgba(91, 117, 83, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.15);

  /* Border Radius - Soft and rounded */
  --radius-sm: 0.75rem;    /* 12px */
  --radius-md: 1rem;       /* 16px */
  --radius-lg: 1.5rem;     /* 24px */
  --radius-xl: 2rem;       /* 32px */
  --radius-2xl: 3rem;      /* 48px */
  --radius-full: 9999px;
}

/* ===================================== */
/* 2. RESET & BASE STYLES */
/* ===================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-base);
  line-height: 1.6; /* More compact line height */
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Subtle grain texture - analog warmth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 1;
}

body > * {
  position: relative;
  z-index: 2;
}

/* Headers use rounded, friendly font */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

/* ===================================== */
/* 3. LAYOUT UTILITIES */
/* ===================================== */

.container-zen {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-zen-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===================================== */
/* 4. SECTION STYLES */
/* ===================================== */

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

.section-zen-title {
  font-size: var(--font-2xl);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 var(--space-sm) 0;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.section-zen-subtitle {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  text-align: center;
  margin: 0 auto var(--space-xl);
  max-width: 600px;
  line-height: 1.5;
}

.section-zen-final {
  padding: var(--space-3xl) 0;
  background: var(--primary-subtle);
  text-align: center;
}

/* ===================================== */
/* 5. BUTTON STYLES */
/* All button variants for uniformity */
/* ===================================== */

.btn-zen-primary {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-sm);
  font-weight: 600;
  font-family: var(--font-display);
  text-decoration: none;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent-dark);
  box-shadow: var(--shadow-raised);
  transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  text-align: center;
}

.btn-zen-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 12px rgba(201, 122, 95, 0.3), 0 3px 6px rgba(201, 122, 95, 0.15);
}

.btn-zen-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-pressed);
}

.btn-zen-secondary {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-sm);
  font-weight: 600;
  font-family: var(--font-display);
  text-decoration: none;
  border-radius: var(--radius-full);
  background: var(--paper);
  color: var(--text-primary);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-paper-sm);
  transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  text-align: center;
}

.btn-zen-secondary:hover {
  background: var(--background-pure);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-paper-md);
}

/* Large CTA Button */
.btn-zen-large {
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--font-base);
  width: 100%;
  text-align: center;
}

/* ===================================== */
/* 6. CARD STYLES */
/* Shared card components */
/* ===================================== */

.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-paper-md);
  transition: all var(--transition-base);
  border: 1.5px solid var(--border);
  position: relative;
  transform: rotate(0deg);
}

/* Subtle paper texture on cards */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
  opacity: 0.02;
  border-radius: var(--radius-md);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: var(--shadow-paper-lg);
  border-color: var(--primary-light);
}

/* ===================================== */
/* 7. ANIMATIONS & KEYFRAMES */
/* ===================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ===================================== */
/* 8. ACCESSIBILITY */
/* ===================================== */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
.btn-zen-primary:focus,
.btn-zen-secondary:focus,
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===================================== */
/* 9. RESPONSIVE UTILITIES */
/* ===================================== */

/* Global mobile overflow prevention */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .container-zen,
  .container-zen-wide {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Mobile: < 480px */
@media (max-width: 480px) {
  .container-zen,
  .container-zen-wide {
    padding: 0 var(--space-sm);
    width: 100%;
    max-width: 100%;
  }

  .section-zen {
    padding: var(--space-2xl) 0;
  }

  .section-zen-title {
    font-size: var(--font-xl);
  }

  .section-zen-subtitle {
    font-size: var(--font-xs);
  }

  .section-zen-final {
    padding: var(--space-2xl) 0;
  }

  .btn-zen-primary,
  .btn-zen-secondary {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-sm);
  }

  .btn-zen-large {
    padding: var(--space-sm) var(--space-lg);
  }
}

/* Tablet: 481px - 767px */
@media (min-width: 481px) and (max-width: 767px) {
  .container-zen,
  .container-zen-wide {
    padding: 0 var(--space-md);
  }

  .section-zen-title {
    font-size: var(--font-2xl);
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .container-zen {
    max-width: 800px;
  }
}
