/* ===== Variables ===== */
:root {
  --color-bg: #faf9f7;
  --color-bg-alt: #f0ede8;
  --color-surface: #ffffff;
  --color-text: #1a1917;
  --color-text-muted: #5c5a56;
  --color-accent: #2d6a4f;
  --color-accent-light: #40916c;
  --color-accent-soft: #d8f3dc;
  --color-border: #e8e4de;
  --color-hero-gradient: linear-gradient(135deg, #faf9f7 0%, #e8f5e9 50%, #faf9f7 100%);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26, 25, 23, 0.06);
  --shadow-lg: 0 12px 48px rgba(26, 25, 23, 0.1);
  --transition: 0.2s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-light);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.125rem;
}

.logo:hover {
  color: var(--color-text);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: white;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 64px 0 96px;
  background: var(--color-hero-gradient);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-light);
  color: white;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Phone Mockup */
.phone-mockup {
  display: flex;
  justify-content: center;
}

.phone-screen {
  width: 280px;
  padding: 20px;
  background: var(--color-surface);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mock-title {
  font-weight: 700;
  font-size: 1.125rem;
}

.mock-badge {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 4px 10px;
  border-radius: 100px;
}

.mock-board {
  position: relative;
  padding: 14px;
  background: var(--color-bg);
  border-radius: var(--radius);
  margin-bottom: 10px;
  border: 1px solid var(--color-border);
}

.mock-board.pinned {
  border-left: 3px solid var(--color-accent);
}

.mock-board.accent {
  background: var(--color-accent-soft);
  border-color: transparent;
}

.mock-pin {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.75rem;
}

.mock-board-title {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.mock-board-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.mock-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.mock-checklist .checked {
  color: var(--color-accent);
  text-decoration: line-through;
}

.mock-mood {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.mock-progress {
  height: 6px;
  background: rgba(45, 106, 79, 0.2);
  border-radius: 100px;
  margin-top: 8px;
  overflow: hidden;
}

.mock-progress-bar {
  height: 100%;
  background: var(--color-accent);
  border-radius: 100px;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.0625rem;
}

/* Features */
.features {
  background: var(--color-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--color-accent-soft);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* How It Works */
.how-it-works {
  background: var(--color-bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.step {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  border-radius: 10px;
  font-size: 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.important-note {
  padding: 20px 24px;
  background: #fff8e6;
  border: 1px solid #f0e6c8;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: #5c4a1a;
  line-height: 1.6;
}

/* Audience */
.audience-text {
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Contact */
.contact {
  background: var(--color-surface);
}

.contact-card {
  text-align: center;
  padding: 48px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  max-width: 480px;
  margin: 0 auto;
}

.contact-card p {
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  word-break: break-all;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: 48px 0 80px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.legal-content ul {
  margin: 0 0 16px 24px;
  color: var(--color-text-muted);
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-content a {
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0 32px;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer .logo {
  color: white;
}

.footer .logo-icon {
  background: var(--color-accent-light);
}

.footer-tagline {
  font-size: 0.875rem;
  margin-top: 6px;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.8125rem;
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 40px 0 64px;
  }
}
