:root {
  --bg: #f7f6f2;
  --card: #ffffff;
  --ink: #1e2a25;
  --muted: #5f6d66;
  --accent: #6bbf8a;
  --accent-dark: #4f9f73;
  --shadow: 0 12px 28px rgba(40, 60, 50, 0.12);
  --radius: 18px;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.loaded {
  opacity: 1;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 600;
  font-size: 20px;
}

.brand img {
  display: block;
  height: 240px; /* Increased logo size */
  width: auto;
  max-width: 100%;
}

.download-wrap {
  min-height: 55vh;
  display: grid;
  place-items: center;
}

.download-card {
  width: min(640px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  display: grid;
  gap: 14px;
  text-align: center;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 500;
  font: inherit;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}

.eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.subhead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.price {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.price-old {
  font-size: 18px;
  color: var(--muted);
  text-decoration: line-through;
}

.price-new {
  font-size: 28px;
  font-weight: 600;
}

.price-off {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  background: rgba(107, 191, 138, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
}

.benefits {
  display: grid;
  gap: 10px;
  color: var(--muted);
  list-style: none;
  font-size: 15px;
}

.buyer-fields {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.hidden {
  display: none !important;
}

.preview-card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.preview-trigger {
  background: transparent;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.preview-card img {
  width: 100%;
  display: block;
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.detail-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(50, 70, 60, 0.08);
}

.detail-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.detail-card p {
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

button,
.primary {
  border: none;
  cursor: pointer;
  font: inherit;
}

.primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(84, 148, 116, 0.3);
}

.primary:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 24px rgba(84, 148, 116, 0.35);
}

.primary:active {
  transform: scale(0.98);
}

.ghost {
  background: transparent;
  border: 1px solid rgba(95, 109, 102, 0.3);
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ghost:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(60, 80, 70, 0.15);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 32, 28, 0.4);
}

.modal-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  width: min(480px, 90vw);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-content {
  display: grid;
  gap: 12px;
}

.modal.open .modal-card {
  transform: translateY(0);
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 32, 28, 0.5);
}

.lightbox-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  width: min(900px, 92vw);
  max-height: 90vh;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox.open .lightbox-card {
  transform: translateY(0);
  opacity: 1;
}

.lightbox-card img {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 32px);
  object-fit: contain;
  display: block;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  font-size: 24px;
  color: var(--muted);
}

.modal-step {
  display: grid;
  gap: 16px;
}

.modal-step.hidden {
  display: none;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d7ded8;
  font-size: 15px;
}

input:focus {
  outline: 2px solid rgba(107, 191, 138, 0.3);
  border-color: var(--accent);
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.form-error {
  color: #b55353;
  min-height: 18px;
}

#paymentStatus {
  min-height: 18px;
}

.qr-wrap {
  background: #f0f3ef;
  padding: 18px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
}

.qr-wrap img {
  width: 220px;
  height: 220px;
}

.instructions {
  list-style: decimal;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.download-inline {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .nav a {
    display: none;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
