:root {
  color-scheme: light;
  --surface-0: #ffffff;
  --surface-1: #fafaf9;
  --surface-2: #f3f3f1;
  --surface-3: #ededeb;
  --border: #e2e2de;
  --border-soft: #d0d0cc;
  --text-1: #111111;
  --text-2: #404040;
  --text-3: #6b6b6b;
  --text-4: #9a9a9a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --success: #16a34a;
  --danger: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 22px 70px rgba(17, 17, 17, 0.08);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface-1);
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.6;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  padding: 16px 0 34px;
}

.brand-row {
  display: flex;
  align-items: center;
  margin-bottom: 56px;
}

.brand-logo {
  width: auto;
  height: 36px;
  object-fit: contain;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: end;
}

.eyebrow,
.section-heading p {
  margin: 0 0 10px;
  color: var(--text-4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.1rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--text-3);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-aside {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.hero-aside span,
.hero-aside small {
  display: block;
  color: var(--text-3);
}

.hero-aside strong {
  display: block;
  margin: 2px 0 0;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
}

.form-card,
.success-card {
  overflow: hidden;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-section {
  padding: 34px;
  border-bottom: 1px solid var(--border);
}

.section-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.section-number {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 13px;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

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

.two-column + .two-column,
.field + .field,
.field-group + .field,
.field + .field-group {
  margin-top: 20px;
}

.field,
.field-group {
  display: grid;
  gap: 10px;
}

.field span,
.field-group legend {
  color: var(--text-1);
  font-weight: 700;
}

.field small {
  color: var(--text-3);
  line-height: 1.5;
}

b {
  color: var(--danger);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  color: var(--text-1);
  padding: 13px 14px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

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

input::placeholder,
textarea::placeholder {
  color: var(--text-4);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  line-height: 1.45;
}

.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.choice + .choice {
  margin-top: 10px;
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.choice input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.choice span {
  color: var(--text-2);
  line-height: 1.45;
}

.reveal {
  display: none;
  margin-top: 12px;
}

.reveal.is-visible {
  display: grid;
}

.error-text,
#form-status {
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 700;
}

.is-invalid input:not([type="checkbox"]):not([type="radio"]),
.is-invalid textarea {
  border-color: var(--danger);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 34px;
  background: var(--surface-1);
}

#form-status {
  flex: 1;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 9999px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.primary-button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.primary-button:hover {
  background: var(--accent-hover);
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--surface-0);
  color: var(--text-1);
}

.secondary-button:hover {
  background: var(--surface-2);
}

.success-card {
  margin-top: 20px;
  padding: 42px 34px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: var(--radius-md);
  background: var(--success);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
}

.success-card p {
  max-width: 580px;
  margin: 12px auto 0;
  color: var(--text-3);
  line-height: 1.65;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 22px, 960px);
    padding: 28px 0 48px;
  }

  .brand-row {
    margin-bottom: 42px;
  }

  .brand-logo {
    height: 30px;
  }

  .hero-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-aside {
    box-shadow: var(--shadow-sm);
  }

  .form-section,
  .form-actions,
  .success-card {
    padding: 22px;
  }

  .section-heading {
    gap: 12px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #form-status {
    min-height: 20px;
  }

  button {
    width: 100%;
  }
}
