:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5f6b65;
  --line: #dce4df;
  --green: #176b46;
  --green-dark: #0f5235;
  --green-soft: #eef7f2;
  --orange: #d97706;
  --blue: #2457a7;
  --white: #ffffff;
  --surface: #f6f8f7;
  --shadow: 0 14px 35px rgba(22, 48, 36, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 74px;
  height: 50px;
  object-fit: contain;
}

.brand-name,
.brand-section {
  margin: 0;
}

.brand-name {
  font-weight: 750;
}

.brand-section {
  color: var(--muted);
  font-size: 0.92rem;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: clamp(32px, 4vw, 48px);
  padding: 42px 0 28px;
}

.intro-content {
  min-width: 0;
}

.hero-cover {
  width: 100%;
  max-width: 340px;
  margin: 0;
  justify-self: end;
}

.hero-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(20, 32, 26, 0.18);
}

.eyebrow,
.step-label,
.product-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.04;
  font-weight: 700;
}

.subtitle {
  margin: 14px 0 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
}

.intro-copy {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2,
.checkout-section h2,
.order-summary h2 {
  margin: 0;
  font-size: 1.5rem;
}

.section-heading > p {
  margin: 0 0 2px;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.product-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-card-body {
  min-height: 212px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease;
}

.product-card:hover .product-card-body {
  transform: translateY(-2px);
}

.product-card input:focus-visible + .product-card-body,
.product-card input:checked + .product-card-body {
  border-color: var(--green);
}

.product-card input:checked + .product-card-body {
  background: var(--green-soft);
}

.product-card-body > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.product-description {
  margin-top: 12px;
  color: var(--muted);
}

.product-price {
  margin-top: auto;
  padding-top: 20px;
  color: var(--green-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.best-value {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 44px;
  margin: 64px 0 80px;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.discount-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.discount-panel {
  margin-top: 10px;
}

.discount-panel > label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.discount-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.discount-control button {
  min-width: 92px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 800;
  cursor: pointer;
}

.discount-control button:hover {
  background: var(--green-soft);
}

.discount-panel small {
  display: block;
  min-height: 20px;
  margin-top: 5px;
}

.discount-success {
  color: var(--green);
}

.discount-error {
  color: #9a3412;
}

.form-grid small {
  color: var(--muted);
  font-weight: 500;
}

.field-wide {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b9c6bf;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(36, 87, 167, 0.18);
  border-color: var(--blue);
}

textarea {
  resize: vertical;
}

.order-summary {
  align-self: start;
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.summary-row,
.summary-meta,
.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.summary-row {
  margin-top: 24px;
  padding-bottom: 16px;
  font-size: 1.05rem;
}

.summary-meta {
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-meta[hidden] {
  display: none;
}

.summary-meta strong {
  color: var(--ink);
}

.summary-discount strong {
  color: var(--green);
}

.summary-total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
}

.summary-total strong {
  color: var(--green);
  font-size: 1.7rem;
}

.buy-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.buy-button:hover {
  background: var(--green-dark);
}

.buy-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.secure-note,
.form-message {
  font-size: 0.84rem;
}

.secure-note {
  margin: 14px 0 0;
  color: var(--muted);
}

.form-message {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--orange);
  background: #fff7ed;
  color: #7c3e06;
}

.result-message {
  margin-bottom: 30px;
  padding: 18px 20px;
  border: 1px solid #95c9aa;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
}

.download-section {
  display: block;
  max-width: 760px;
  margin-top: 0;
}

.download-list {
  display: grid;
  gap: 14px;
}

.download-row {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.download-row span {
  display: grid;
}

.download-row small {
  color: var(--muted);
}

.download-button {
  width: auto;
  min-width: 132px;
  margin: 0;
  padding: 0 18px;
}

footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  .product-grid,
  .checkout-section {
    grid-template-columns: 1fr;
  }

  .checkout-section {
    gap: 34px;
    padding: 26px;
  }

  .order-summary {
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-cover {
    width: min(100%, 280px);
    max-width: 280px;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-logo {
    width: 62px;
    height: 42px;
  }

  .intro {
    padding: 42px 0 34px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .product-card-body {
    min-height: 176px;
  }

  .checkout-section {
    margin: 46px 0 58px;
    padding: 22px 18px;
  }

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

  .field-wide {
    grid-column: auto;
  }

  .discount-control {
    grid-template-columns: 1fr;
  }

  .discount-control button {
    min-height: 46px;
  }
}
