* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: #13211b;
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 125, 89, 0.1), transparent 26%),
    radial-gradient(circle at 100% 10%, rgba(217, 96, 52, 0.08), transparent 22%),
    #f7f2e8;
}

a { color: inherit; }

.frame {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(19, 33, 27, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  outline: 1px solid rgba(19, 33, 27, 0.16);
  outline-offset: 3px;
}

.back-link {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #355a4a;
}

.hero {
  padding: 2.25rem 0 3rem;
  display: block;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(19, 33, 27, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #315848;
}

h1 {
  margin: 1rem 0 0.8rem;
  font-family: "Instrument Serif", serif;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.hero p {
  max-width: 38rem;
  color: #44584f;
  font-size: 1.04rem;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 0;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1.2rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
}

.button-primary {
  background: #1f4335;
  color: #f7f2e8;
}

.button-secondary {
  border: 1px solid rgba(19, 33, 27, 0.16);
  background: rgba(255, 255, 255, 0.56);
}

.pricing-card,
.status-card,
.download-card,
.note-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(19, 33, 27, 0.12);
  box-shadow: 0 18px 45px rgba(19, 33, 27, 0.06);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.section-label {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #315848;
}

.section-title {
  margin: 0 0 0.8rem;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.section-copy {
  max-width: 42rem;
  margin: 0 0 1.4rem;
  color: #4a5f56;
  line-height: 1.75;
}

.pro-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.4rem;
}

.feature-card {
  overflow: hidden;
}

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

.feature-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card-body {
  padding: 1.1rem;
}

.feature-card-body h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-card-body p {
  margin: 0;
  color: #4a5f56;
  line-height: 1.72;
}

.pricing-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  padding: 1.2rem;
}

.pricing-card .button-primary,
.pricing-card .button-secondary,
.pricing-card .download-link {
  width: 100%;
  white-space: nowrap;
}

.pricing-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  grid-row: 1;
}

.price {
  margin: 0 0 0.8rem;
  font-family: "Instrument Serif", serif;
  font-size: 3rem;
  line-height: 1;
  grid-row: 2;
}

.pricing-card p {
  margin: 0;
  color: #4a5f56;
  line-height: 1.75;
  grid-row: 3;
}

.feature-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  grid-row: 4;
  align-content: start;
}

.feature-list li {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(19, 33, 27, 0.1);
  color: #264637;
}

.status-card,
.download-card,
.note-card {
  padding: 1.2rem;
  margin-top: 1.25rem;
}

.status-card h2,
.download-card h2,
.note-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-line {
  color: #4a5f56;
  line-height: 1.7;
}

.status-line strong {
  color: #1f4335;
}

.status-ok {
  color: #1f4335;
  font-weight: 800;
}

.status-error {
  color: #a63d18;
  font-weight: 700;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(11, 20, 17, 0.2);
  backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, backdrop-filter 0.35s ease, background 0.35s ease;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(11, 20, 17, 0.82);
  backdrop-filter: blur(12px);
}

.image-lightbox-dialog {
  position: relative;
  width: min(96vw, 1600px);
  height: min(94vh, 1100px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.85rem;
  transform: translateY(28px) scale(0.94);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
}

.image-lightbox.is-open .image-lightbox-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.image-lightbox-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(247, 242, 232, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.image-lightbox img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(19, 33, 27, 0.8);
  color: #f7f2e8;
  font-size: 1.4rem;
  cursor: pointer;
}

.image-lightbox-caption {
  text-align: center;
  color: #e6ddd0;
  font-size: 0.84rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

#paypal-button-container {
  min-height: 44px;
  margin-top: 1rem;
  grid-row: 5;
}

.pricing-card > .button-primary,
.pricing-card > .download-link {
  grid-row: 5;
  align-self: end;
}

.download-card {
  display: none;
}

.download-card.is-visible {
  display: block;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  min-height: 54px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: #1f4335;
  color: #f7f2e8;
  text-decoration: none;
  font-weight: 800;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

footer {
  margin-top: 2rem;
  color: #697c73;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

@media (max-width: 860px) {
  .grid,
  .pro-showcase {
    grid-template-columns: 1fr;
  }

  .actions a {
    width: 100%;
  }
}
