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

:root {
  --terra: #B85C38;
  --terra-dark: #9A4528;
  --terra-light: #E8C4B8;
  --terra-bg: #FDF5F0;
  --terra-bg-alt: #F9EDE5;
  --cream: #FFF9F5;
  --text: #2D2016;
  --text-muted: #6B5B4F;
  --text-light: #9A8A7E;
  --white: #FFFFFF;
  --green: #4E7A51;
  --red: #C0392B;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(45, 32, 22, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 32, 22, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 92, 56, 0.1);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.nav-logo img {
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--terra);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--terra-bg-alt);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: var(--terra);
}

.lang-btn.active {
  background: var(--terra);
  color: var(--white);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 140px 24px 60px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.hero-mascot {
  width: 120px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 12px rgba(184, 92, 56, 0.2));
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--terra);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-banner {
  max-width: 780px;
  margin: 0 auto;
}

.hero-banner-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(184, 92, 56, 0.3);
}

.btn-primary:hover {
  background: var(--terra-dark);
  box-shadow: 0 6px 24px rgba(184, 92, 56, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--terra);
  border: 2px solid var(--terra-light);
}

.btn-ghost:hover {
  background: var(--terra-bg);
  border-color: var(--terra);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terra);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 48px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: -36px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* ── Promise Section ──────────────────────────────────── */
.section-promise {
  background: var(--cream);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.promise-item {
  text-align: center;
}

.promise-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--terra-bg);
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.promise-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.promise-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* ── Features Section ─────────────────────────────────── */
.section-features {
  background: var(--terra-bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ── Screenshots ──────────────────────────────────────── */
.section-screenshots {
  background: var(--cream);
  overflow: hidden;
}

.screenshots-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

.screenshot-frame {
  flex: 0 0 auto;
  width: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  background: var(--white);
  transition: transform 0.3s;
  scroll-snap-align: center;
}

.screenshot-frame:hover {
  transform: scale(1.03);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
}

/* ── Pricing ──────────────────────────────────────────── */
.section-pricing {
  background: var(--terra-bg-alt);
}

.pricing-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.pricing-bypass {
  font-size: 0.95rem;
  color: var(--terra);
  font-weight: 500;
  font-style: italic;
  max-width: 640px;
  margin-bottom: 48px;
}

.pricing-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 700px;
}

.pricing-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.pricing-card-header {
  padding: 24px 28px 0;
}

.pricing-card-header h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

.pricing-card-body {
  padding: 16px 28px 28px;
}

.pricing-amount {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.price-strike {
  text-decoration: line-through;
  opacity: 0.5;
}

.price-once {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-annual {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-list li {
  font-size: 0.95rem;
  padding-left: 28px;
  position: relative;
}

.pricing-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
}

.pricing-good::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

.pricing-bad::before {
  content: "✗";
  color: var(--red);
  font-weight: 700;
}

/* Others card */
.pricing-others {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-others .pricing-card-header h4 {
  color: var(--text-muted);
}

.pricing-others .pricing-amount {
  color: var(--text-muted);
}

.pricing-others .pricing-list li {
  color: var(--text-muted);
}

/* CoucoPDF card */
.pricing-couco {
  background: var(--white);
  border: 2px solid var(--terra);
}

.pricing-badge-top {
  position: absolute;
  top: 0;
  right: 24px;
  background: var(--terra);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 0 0 8px 8px;
}

.pricing-couco .pricing-amount {
  color: var(--terra);
}

/* ── Download ─────────────────────────────────────────── */
.section-download {
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-dark) 100%);
  color: var(--white);
  text-align: center;
}

.download-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.section-download h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.section-download p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 480px;
}

.section-download .btn-primary {
  background: var(--white);
  color: var(--terra);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.section-download .btn-primary:hover {
  background: var(--terra-bg);
  transform: translateY(-2px);
}

/* ── Privacy ──────────────────────────────────────────── */
.section-privacy {
  background: var(--cream);
}

.privacy-content {
  max-width: 720px;
}

.privacy-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--text);
}

.privacy-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ── Support ──────────────────────────────────────────── */
.section-support {
  background: var(--terra-bg-alt);
  text-align: center;
}

.support-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 16px;
}

.support-email {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--terra);
  padding: 12px 32px;
  border: 2px solid var(--terra);
  border-radius: 50px;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.support-email:hover {
  background: var(--terra);
  color: var(--white);
}

.support-note {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--white);
}

.footer-brand img {
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 0;
  }

  .hero {
    padding: 120px 20px 40px;
  }

  .hero-mascot {
    width: 90px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    margin-bottom: 32px;
  }

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

  .pricing-comparison {
    grid-template-columns: 1fr;
  }

  .screenshot-frame {
    width: 200px;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .screenshot-frame {
    width: 180px;
  }

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