:root {
  --accent-text: #ae3e30;
  color-scheme: light;
  --navy: #0e2a47;
  --navy-deep: #0a213b;
  --ink: #23364a;
  --muted: #596979;
  --coral: #e86b5b;
  --coral-dark: #ae3e30;
  --paper: #f7f2e9;
  --surface: #fffdf9;
  --line: #d9dfe4;
  --soft-blue: #eaf1f6;
  --error: #a42f2a;
  --error-bg: #fff0ee;
  --shadow: 0 18px 50px rgba(16, 45, 79, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

a {
  color: var(--navy);
  text-underline-offset: 0.2em;
}

.pilot-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.pilot-skip-link {
  background: var(--navy-deep);
  border-radius: 0 0 0.5rem 0;
  color: white;
  left: 0;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 0;
  transform: translateY(-130%);
  z-index: 20;
}

.pilot-skip-link:focus {
  transform: translateY(0);
}

.pilot-header,
.pilot-footer,
.pilot-main {
  margin-inline: auto;
  max-width: 52rem;
  width: 100%;
}

.pilot-header {
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
}

.pilot-wordmark {
  align-items: center;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 800;
  gap: 0.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.pilot-heart {
  color: var(--accent-text);
  font-size: 1.2rem;
}

.pilot-main {
  display: grid;
  flex: 1;
  padding: clamp(0.5rem, 3vw, 1.5rem) clamp(1rem, 4vw, 2rem) 3rem;
  place-items: start stretch;
}

.pilot-card,
.pilot-home {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pilot-card {
  background: var(--surface);
  border: 1px solid rgba(16, 45, 79, 0.1);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  margin-inline: auto;
  max-width: 39rem;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  width: 100%;
}

.pilot-card--wide {
  max-width: 46rem;
}

.pilot-card--centered {
  text-align: center;
}

.pilot-eyebrow {
  color: var(--coral-dark);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  color: var(--navy-deep);
  line-height: 1.12;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 3.2rem);
  letter-spacing: -0.045em;
  margin: 0;
}

h2 {
  font-size: clamp(1.25rem, 5vw, 1.65rem);
  letter-spacing: -0.025em;
  margin: 0;
}

.pilot-lede {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0.8rem 0 0;
}

.pilot-free-note {
  color: var(--navy-deep);
  margin: 0.65rem 0 0;
}

.pilot-privacy-note,
.pilot-privacy-compact {
  background: var(--soft-blue);
  border-left: 0.25rem solid var(--navy);
  color: var(--ink);
}

.pilot-privacy-note {
  border-radius: 0.45rem 0.75rem 0.75rem 0.45rem;
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  text-align: left;
}

.pilot-error {
  background: var(--error-bg);
  border: 1px solid rgba(164, 47, 42, 0.35);
  border-radius: 0.75rem;
  color: var(--error);
  margin: 1.5rem 0;
  padding: 1rem;
}

.pilot-error h2 {
  color: inherit;
  font-size: 1rem;
}

.pilot-error p {
  margin: 0.35rem 0 0;
}

.pilot-form {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.75rem;
}

.pilot-form fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.pilot-form legend {
  color: var(--navy-deep);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  padding: 0;
}

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

.pilot-field {
  min-width: 0;
}

.pilot-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  margin-bottom: 0.35rem;
}

.pilot-field input,
.pilot-field textarea {
  background: white;
  border: 1px solid #aebac5;
  border-radius: 0.65rem;
  color: var(--ink);
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.pilot-field input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.pilot-choice-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pilot-choice {
  align-items: center;
  background: white;
  border: 1px solid #aebac5;
  border-radius: 0.7rem;
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
}

.pilot-choice:has(input:checked) {
  background: var(--soft-blue);
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.pilot-choice input,
.pilot-consent input {
  accent-color: var(--navy);
  flex: 0 0 auto;
  height: 1.25rem;
  width: 1.25rem;
}

.pilot-review-sentence {
  background: #fff7ed;
  border-radius: 0.75rem;
  color: #604c38;
  margin: 0;
  padding: 0.85rem 1rem;
}

.pilot-primary-button {
  align-items: center;
  appearance: none;
  background: var(--coral);
  border: 2px solid var(--coral);
  border-radius: 999px;
  color: #221b1a;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.3rem;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  width: 100%;
}

.pilot-primary-button:hover {
  background: #f07a69;
  border-color: #f07a69;
}

.pilot-mail-mark {
  align-items: center;
  background: var(--soft-blue);
  border-radius: 50%;
  color: var(--navy);
  display: inline-flex;
  font-size: 1.6rem;
  height: 3.25rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 3.25rem;
}

.pilot-consent {
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  cursor: pointer;
  display: flex;
  gap: 0.8rem;
  padding: 1rem;
}

.pilot-consent input {
  margin-top: 0.15rem;
}

.pilot-terms-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -0.55rem 0 0;
}

.pilot-secondary-action {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.pilot-secondary-action p {
  margin: 0 0 0.45rem;
}

.pilot-text-button {
  background: transparent;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  font-weight: 750;
  min-height: 48px;
  padding: 0.5rem 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  touch-action: manipulation;
}

.pilot-home {
  margin-inline: auto;
  max-width: 44rem;
  width: 100%;
}

.pilot-home-heading {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.75fr);
}

.pilot-privacy-compact {
  border-radius: 0.4rem 0.65rem 0.65rem 0.4rem;
  font-size: 0.9rem;
  padding: 0.7rem 0.8rem;
}

.pilot-partner-status {
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(16, 45, 79, 0.12);
  border-radius: 0.8rem;
  display: flex;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding: 0.85rem 1rem;
}

.pilot-partner-status h2 {
  font-size: 0.95rem;
}

.pilot-partner-status p {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  font-weight: 750;
  gap: 0.45rem;
  margin: 0;
}

.pilot-status-dot {
  background: var(--coral);
  border-radius: 50%;
  height: 0.65rem;
  width: 0.65rem;
}

.pilot-action-card {
  background: var(--navy);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  color: #eaf0f5;
  margin-top: 1rem;
  padding: clamp(1.35rem, 5vw, 2.4rem);
}

.pilot-action-card .pilot-eyebrow {
  color: #ff9e90;
}

.pilot-action-card h2 {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 7vw, 2.75rem);
}

.pilot-action-card p:not(.pilot-eyebrow) {
  margin: 0.75rem 0 1.35rem;
}

.pilot-action-card p:last-child {
  margin-bottom: 0;
}

.pilot-action-card .pilot-primary-button {
  max-width: 22rem;
}

.pilot-report-shelf {
  margin-top: 1.25rem;
}

.pilot-report-shelf h2 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.pilot-report-links {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pilot-report-link {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(16, 45, 79, 0.18);
  border-radius: 0.8rem;
  display: grid;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
}

.pilot-report-link span {
  font-weight: 800;
}

.pilot-report-link small {
  color: var(--muted);
}

.pilot-report-link:hover {
  border-color: var(--navy);
}

.pilot-feedback-invitation {
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  text-align: right;
}

.pilot-feedback-invitation a,
.pilot-feedback-home a {
  color: var(--muted);
}

.pilot-feedback {
  max-width: 44rem;
}

.pilot-feedback-form {
  margin-top: 1.5rem;
}

.pilot-feedback-question {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 1.1rem 0;
}

.pilot-feedback-question legend {
  color: var(--navy);
  float: left;
  font-weight: 800;
  padding: 0;
  width: 100%;
}

.pilot-feedback-question legend + * {
  clear: both;
}

.pilot-binary-choices {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.pilot-binary-choices label {
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  cursor: pointer;
  display: flex;
  font-weight: 750;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 6rem;
  padding: 0.7rem 1rem;
}

.pilot-binary-choices input {
  height: 1.1rem;
  margin: 0;
  width: 1.1rem;
}

.pilot-feedback-comment {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.25rem;
}

.pilot-feedback-comment textarea {
  resize: vertical;
}

.pilot-feedback-comment label span,
.pilot-feedback-comment p {
  color: var(--muted);
  font-size: 0.85rem;
}

.pilot-feedback-comment p {
  margin: 0.45rem 0 0;
}

.pilot-invitation-tools {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.pilot-invitation-tools summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 750;
  min-height: 48px;
  padding: 0.7rem 0;
  touch-action: manipulation;
}

.pilot-invitation-tools-body {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
}

.pilot-invitation-tools-body > p {
  margin: 0 0 0.5rem;
}

.pilot-invitation-replace-form {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.pilot-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.85rem;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 2rem;
}

.pilot-footer p {
  margin: 0;
}

.pilot-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

:focus-visible {
  outline: 3px solid #1674c5;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .pilot-field-grid,
  .pilot-choice-grid,
  .pilot-home-heading,
  .pilot-report-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .pilot-partner-status,
  .pilot-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .pilot-header {
    padding-block: 1rem;
  }

  .pilot-main {
    padding-inline: 0.75rem;
  }

  .pilot-card,
  .pilot-action-card {
    border-radius: 1rem;
  }
}

@media (max-width: 320px) {
  .pilot-main,
  .pilot-header,
  .pilot-footer {
    padding-inline: 0.625rem;
  }

  .pilot-card,
  .pilot-action-card {
    padding: 1rem;
  }
}

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

.pilot-retention-note { color: var(--muted); font-size: .87rem; line-height: 1.6; }
[data-share-status] { display: block; overflow-wrap: anywhere; font-size: .9rem; }
[data-share-status]:empty { display: none; }
.pilot-feedback-invitation .pilot-text-button { font: inherit; }
