/* ReturnStack landing pages: shared styles. */

:root {
  --brand: #4a6da7;
  --brand-dark: #3a567f;
  --ink: #0b1221;
  --muted: rgba(255, 255, 255, 0.82);
  --card-bg: #ffffff;
  --field-border: #d7deea;
  --error: #d23c3c;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #4a6da7 0%, #2f4a72 100%);
  background-attachment: fixed;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px;
  align-items: center;
}

/* Left: marketing copy */
.pitch { color: #fff; }

.pitch .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
  margin: 0 0 16px;
}

.pitch h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.pitch .lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 30em;
}

.pitch ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
  max-width: 30em;
}

.pitch li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.45;
  color: #fff;
}

.pitch li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a6da7' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pitch .proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}

.pitch .proof strong { color: #fff; }

/* Right: form card */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 30px 80px rgba(8, 20, 60, 0.28);
}

.card h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.card .sub {
  font-size: 15px;
  color: #5a6478;
  margin: 0 0 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #36405a;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--field-border);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea { resize: vertical; min-height: 84px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(74, 109, 167, 0.22);
}

.field input.invalid { border-color: var(--error); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  margin-top: 22px;
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.fine {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #8a93a6;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  display: none;
}
.form-status.error { display: block; color: var(--error); }

/* Standalone thank-you page: single centered card. */
.center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.center .card {
  max-width: 460px;
  width: 100%;
}

/* Success state replaces the form. */
.success {
  display: none;
  text-align: center;
  padding: 18px 8px;
}
.success.show { display: block; }
.success .check {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; background: #eaf0f8;
  display: flex; align-items: center; justify-content: center;
}
.success h2 { margin: 0 0 8px; }
.success p { color: #5a6478; margin: 0; }

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px;
  }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 28px; }
}
