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

:root {
  --color-primary: #2c6e49;
  --color-primary-light: #4c956c;
  --color-accent: #f4a261;
  --color-bg: #fefae0;
  --color-text: #333;
  --color-text-light: #555;
  --color-white: #fff;
  --max-width: 1100px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ===== Layout ===== */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

main {
  flex: 1;
}

/* ===== Header / Nav ===== */
.site-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
}

.site-header .logo:hover {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  font-size: 1.4rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  border-radius: 4px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--color-white);
  font-weight: 500;
}

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

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

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

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

.btn-primary:hover {
  background: #e89540;
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: #eee;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Section ===== */
.section {
  padding: 3rem 0;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  text-align: center;
}

.section .container > p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.card p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* ===== Product Page ===== */
.product-header {
  padding: 2.5rem 0;
  background: var(--color-white);
  border-bottom: 2px solid #eee;
}

.product-header h1 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.product-screenshot {
  background: #ddd;
  border-radius: 8px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1rem;
}

.feature-list {
  list-style: none;
  margin: 1rem 0;
}

.feature-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== Coming Soon ===== */
.coming-soon {
  text-align: center;
  padding: 4rem 1rem;
}

.coming-soon h1 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.coming-soon .badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ===== Rescue / Donate ===== */
.donate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.donate-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.donate-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.donate-card p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* ===== Grid Diagram ===== */
.grid-diagram {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 4px;
  margin: 1.5rem 0;
  justify-content: center;
}

.grid-diagram .grid-cell {
  background: #c0c0c0;
  border: 2px solid #999;
  border-radius: 4px;
  width: 60px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #666;
}

.grid-diagram .grid-cell.active {
  background: var(--color-primary-light);
  border-color: var(--color-white);
  color: var(--color-white);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(44, 110, 73, 0.4);
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 1rem;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
}

.faq-item summary {
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.25rem 0;
  list-style: none;
}

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

.faq-item summary::before {
  content: "+ ";
  font-weight: 700;
  margin-right: 0.5rem;
}

.faq-item[open] summary::before {
  content: "- ";
}

.faq-item p {
  margin-top: 0.5rem;
  color: var(--color-text-light);
  padding-left: 1.25rem;
}

/* ===== Video ===== */
.video-container {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: 0;
  border-radius: 8px;
}

.video-placeholder {
  background: #ddd;
  border-radius: 8px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1rem;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem auto;
  max-width: 750px;
}

.pricing-card {
  background: var(--color-white);
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(44, 110, 73, 0.15);
}

.pricing-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.pricing-card p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.pricing-note {
  margin-top: 1rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ===== Comparison Table ===== */
.comparison-table {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.comparison-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== Shortcut Table ===== */
.shortcut-table {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.shortcut-table table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
}

.shortcut-table th,
.shortcut-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.shortcut-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

.shortcut-table td:first-child {
  font-weight: 600;
  font-family: "Consolas", "Courier New", monospace;
  color: var(--color-primary);
  white-space: nowrap;
}

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.about-photo {
  background: #ddd;
  border-radius: 10px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    padding-top: 0.5rem;
  }

  .site-nav.open ul {
    display: flex;
  }

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

  .product-content {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }
}

/* Affiliate / partner cards (rescue page) */
.affiliate-card {
  display: flex;
  flex-direction: column;
}

.affiliate-photo {
  background: #ddd;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  margin-bottom: 1rem;
}

.affiliate-links {
  margin-top: auto;
  font-weight: 600;
}
