/* ========================================
   Margo Studios Design System
   ======================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-text: #1a1a2e;
  --color-text-muted: #555;
  --color-accent: #2a7d8c;
  --color-accent-hover: #236b78;
  --color-border: #e5e7eb;
  --color-footer: #1a1a2e;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 960px;
  --container-wide: 1100px;
  --radius: 12px;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container-wide);
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  background: linear-gradient(180deg, #e8f3f3 0%, #d5e8e8 100%);
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero {
  background: #fff;
  color: var(--color-accent);
  border: 2px solid rgba(42, 125, 140, 0.15);
  padding: 11px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hero:hover {
  color: var(--color-accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
}

/* ========================================
   Page Title (non-hero pages)
   ======================================== */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 64px;
  margin-bottom: 32px;
}

/* ========================================
   Prose (content area)
   ======================================== */
.prose {
  max-width: 720px;
  padding-bottom: 80px;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose p {
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 6px;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 48px 0;
}

.prose strong {
  font-weight: 600;
}

/* ========================================
   Cards
   ======================================== */
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--color-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Section divider */
.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  max-width: 120px;
  margin: 56px auto 0;
  opacity: 0.5;
}

/* Product spotlight card */
.product-card {
  max-width: 560px;
  margin: 64px auto 80px;
  text-align: center;
}

.product-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.product-card p {
  margin-bottom: 24px;
}

/* Human touch */
.human-touch {
  text-align: center;
  padding: 0 24px 80px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* ========================================
   Feature Grid
   ======================================== */
.feature-section {
  padding: 64px 0;
}

.feature-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  color: var(--color-accent);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background: var(--color-bg-alt);
  margin-top: 64px;
}

.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.pricing-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ========================================
   Pricing
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 720px;
  margin: 64px auto 80px;
}

.pricing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  background: var(--color-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--color-accent);
  border-width: 2px;
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card .price-period {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.pricing-card li:last-child {
  border-bottom: none;
}

/* App download section */
.app-download {
  text-align: center;
  margin-bottom: 80px;
}

.app-download p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.app-download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-disabled {
  border: 2px solid var(--color-border);
  color: #aaa;
  background: transparent;
  cursor: default;
}

.btn-disabled:hover {
  transform: none;
  text-decoration: none;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--color-footer);
  color: #ccc;
  padding: 64px 24px 32px;
  margin-top: 96px;
}

.footer-container {
  text-align: center;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.footer-links {
  margin-bottom: 24px;
}

.footer-links a {
  color: #ccc;
  margin: 0 12px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #888;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hero {
    padding: 56px 24px;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  /* Mobile nav */
  .nav-toggle-label {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
  }

  .site-nav .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav .nav-link:last-child {
    border-bottom: none;
  }

  .nav-toggle-checkbox:checked ~ .site-nav {
    display: flex;
  }

  /* Hamburger animation */
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .page-title {
    font-size: 1.75rem;
    margin-top: 40px;
  }
}

@media (min-width: 769px) {
  html {
    font-size: 18px;
  }

  .nav-container {
    height: 52px;
  }

  .hero {
    padding: 48px 24px;
  }

  .feature-section {
    padding: 40px 0;
  }

  .cta-section {
    padding: 48px 24px;
    margin-top: 40px;
  }

  .pricing-grid {
    margin: 40px auto 48px;
  }

  .site-footer {
    margin-top: 56px;
    padding: 40px 24px 24px;
  }
}
