/* ===== Design Tokens ===== */
:root {
  --bg: #faf8f5;
  --accent: #C2660A;
  --accent-hover: #D4780C;
  --text: #1a1612;
  --text-muted: #6b5e4f;
  --card-bg: #f3efe9;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ===== Layout ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 680px;
}

section {
  padding: 5rem 0;
}

/* ===== Hero ===== */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.tagline {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 420px;
}

.cta-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  background: var(--accent);
  color: #fff;
}

.cta-button:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.cta-button--secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.cta-button--secondary:hover {
  background: var(--accent);
  color: #fff;
}

.cta-icon {
  flex-shrink: 0;
}

.hero-screenshot {
  flex: 1;
  min-width: 0;
}

.hero-screenshot img {
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* ===== Problem ===== */
.problem {
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.problem p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Features ===== */
.features {
  background: var(--card-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 1.5rem;
}

.feature-icon {
  color: var(--accent);
  stroke: var(--accent);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== How It Works ===== */
.how-it-works {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.steps {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 240px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ===== Screenshots / Carousel ===== */
.screenshots {
  background: var(--card-bg);
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.carousel {
  position: relative;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  margin: 0;
  text-align: center;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  max-height: 540px;
  margin: 0 auto;
  cursor: zoom-in;
}

.carousel-slide figcaption {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.12);
  background: var(--bg);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

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

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--accent);
}

.screenshot-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  opacity: 0.7;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ===== FAQ ===== */
.faq details {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq details:first-of-type {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq summary {
  padding: 1.25rem 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Footer ===== */
footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== Privacy Page ===== */
.privacy-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.privacy-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.back-link {
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--accent);
}

.privacy-content {
  padding: 3rem 0;
}

.privacy-content h2 {
  text-align: left;
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.privacy-content ul {
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2rem;
  }

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

  .tagline {
    font-size: 1.25rem;
  }

  .subtitle {
    max-width: none;
  }

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

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

  .step {
    max-width: 320px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
}
