@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --sage: #00b56b;
  --sage-dark: #009a5b;
  --text: #111827;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
}

.nav-logo img {
  height: 54px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 0.625rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.125rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

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

.nav-links a.active {
  border-color: var(--sage);
  color: var(--sage);
  background: #e6faf2;
}

/* ── PRODUCT HERO ── */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "top    gallery"
    "bottom gallery";
  column-gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2.5rem 6rem;
}

.product-info-top {
  grid-area: top;
  max-width: 520px;
  padding-bottom: 1.5rem;
}

.product-info-bottom {
  grid-area: bottom;
  max-width: 520px;
  align-self: start;
}

.product-gallery {
  grid-area: gallery;
}

.product-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-bottom: 1rem;
}

.product-info h1 {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.product-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.product-description {
  font-size: 0.975rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.product-price {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.stock-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stock-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sage);
}

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

.btn-buy {
  display: inline-block;
  background: var(--sage);
  color: white;
  text-decoration: none;
  padding: 0.875rem 2.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, transform 0.1s;
}

.btn-buy:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gallery-main {
  width: 100%;
  max-width: 380px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
}

.thumb {
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color 0.15s;
}

.thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}

.thumb:hover,
.thumb.active {
  border-color: var(--sage);
}

/* ── APP LINKS ── */
.app-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #111827;
  color: white;
  text-decoration: none;
  padding: 0.4rem 0.875rem;
  border-radius: 6px;
  transition: background 0.15s;
  line-height: 1.2;
}

.btn-appstore:hover {
  background: #1f2937;
}

.btn-appstore span {
  display: flex;
  flex-direction: column;
}

.btn-appstore small {
  font-size: 0.55rem;
  font-weight: 400;
  opacity: 0.8;
}

.btn-appstore span:last-of-type {
  font-size: 0.8rem;
  font-weight: 600;
}

.android-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── FEATURES ── */
.features {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2.5rem;
}

.features-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  color: var(--sage);
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── PAGE HEADER (Products / Archive pages) ── */
.page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── PRODUCT GRID (Products page) ── */
.product-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: block;
}

.product-card:hover {
  border-color: var(--sage);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.12);
  transform: translateY(-2px);
}

.product-card-image {
  background: var(--bg-subtle);
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.product-card-image img {
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
}

.product-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.product-card-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.product-card-body .card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-card-body .card-price {
  font-size: 1.25rem;
  font-weight: 700;
}

.card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  background: #e6faf2;
  border: 1px solid #9fe8c8;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.625rem;
}

/* ── ARCHIVE ── */
.archive-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
}

.archive-empty {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--text-muted);
}

.archive-empty svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  opacity: 0.3;
}

.archive-empty h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.archive-empty p {
  font-size: 0.9rem;
}

/* ── SUPPORT FORM ── */
.support-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  align-self: flex-start;
  background: var(--sage);
  color: white;
  border: none;
  padding: 0.875rem 2.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-submit:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .support-wrap {
    padding: 2rem 1.25rem 4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── THANKS PAGE ── */
.thanks-wrap {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.thanks-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--sage);
}

.thanks-wrap h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.thanks-wrap p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── PROSE (Privacy etc.) ── */
.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
  line-height: 1.8;
  font-size: 0.975rem;
  color: var(--text);
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2.5rem 0 0.5rem;
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.prose a {
  color: var(--sage);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

footer a:hover {
  color: var(--sage);
}

/* ── RESPONSIVE ── */
img {
  max-width: 100%;
}

@media (max-width: 768px) {
  nav {
    padding: 0.875rem 1rem;
    gap: 0.5rem;
  }

  .nav-logo img {
    height: 34px;
  }

  .nav-links {
    gap: 0.375rem;
  }

  .nav-links a {
    font-size: 0.75rem;
    padding: 0.4rem 0.625rem;
  }

  .product-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "top"
      "gallery"
      "bottom";
    padding: 2rem 1.25rem 3rem;
    gap: 1.5rem;
  }

  .gallery-main {
    height: 300px;
    max-width: 100%;
  }

  .gallery-thumbs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .thumb img {
    width: 52px;
    height: 52px;
  }

  .product-info h1 {
    font-size: 2.75rem;
  }

  .product-price {
    font-size: 1.75rem;
  }

  .features {
    padding: 3rem 1.25rem;
  }

  .features-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .page-header {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .product-grid {
    padding: 2rem 1.25rem 4rem;
    grid-template-columns: 1fr;
  }

  .archive-content {
    padding: 2.5rem 1.25rem 4rem;
  }

  .prose {
    padding: 2rem 1.25rem 4rem;
  }

  .thanks-wrap {
    padding: 4rem 1.25rem;
  }
}
