:root {
  color-scheme: light;
  --ink: #101312;
  --muted: #5d6863;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --line: #d7ded8;
  --accent: #00a86b;
  --accent-strong: #00784f;
  --danger: #b3261e;
  --focus: #0b6bcb;
  --shadow: 0 24px 80px rgba(16, 19, 18, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

.download-page {
  min-height: 100svh;
}

.hero {
  position: relative;
  min-height: 52svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 8, 7, 0.82), rgba(4, 8, 7, 0.48) 50%, rgba(4, 8, 7, 0.2)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=82")
      center / cover;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(247, 248, 244, 0), var(--paper));
  z-index: -1;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(110deg, transparent 0%, rgba(112, 255, 189, 0.12) 46%, transparent 58%);
  mix-blend-mode: screen;
  animation: light-pass 8s ease-in-out infinite alternate;
}

.hero__content {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 72px;
  color: #fff;
  transform: translateY(14px);
  opacity: 0;
  animation: rise-in 700ms ease-out 120ms forwards;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #70ffbd;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(2.35rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.6;
}

.form-section {
  width: min(980px, calc(100% - 40px));
  margin: -28px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 540px);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.form-copy {
  position: sticky;
  top: 42px;
  padding-top: 78px;
}

.form-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.form-copy p:not(.eyebrow) {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-form {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid rgba(16, 19, 18, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.field,
.field-grid {
  margin-bottom: 18px;
}

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

label {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.required-hint {
  color: var(--danger);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: #9eaaa4;
}

input:focus,
textarea:focus {
  border-color: var(--focus);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 107, 203, 0.14);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.82rem;
  line-height: 1.35;
}

.options-group {
  margin: 4px 0 20px;
  padding: 0;
  border: 0;
}

.options-group legend {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.check-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.5;
}

.check-option input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.terms-option {
  margin: 2px 0 0;
}

.captcha-row {
  display: grid;
  grid-template-columns: 178px 150px;
  gap: 12px;
  align-items: center;
  justify-content: start;
}

.captcha-question {
  display: flex;
  min-height: 52px;
  align-items: center;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5ef;
  color: var(--ink);
  font-weight: 800;
}

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #06110d;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.submit-button:not([disabled]):hover {
  background: #19c782;
  box-shadow: 0 14px 34px rgba(0, 120, 79, 0.22);
  transform: translateY(-1px);
}

.submit-button:not([disabled]):active {
  transform: translateY(0);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(11, 107, 203, 0.34);
  outline-offset: 3px;
}

.submit-button[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.form-status.is-success {
  color: var(--accent-strong);
}

.form-status.is-error {
  color: var(--danger);
}

.more-info {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.more-info a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes light-pass {
  from {
    transform: translateX(-16%);
    opacity: 0.55;
  }

  to {
    transform: translateX(10%);
    opacity: 0.9;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 48svh;
  }

  .hero__content {
    width: min(100% - 32px, 680px);
    padding: 70px 0 58px;
  }

  .form-section {
    width: min(100% - 32px, 680px);
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .form-copy {
    position: static;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 54svh;
    background-position: 56% center;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .captcha-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
