:root {
  color-scheme: light;
  --background: #f5f8ff;
  --surface: #fffefd;
  --surface-blue: #edf4ff;
  --text: #15213d;
  --muted: #626f86;
  --border: #d8e2f5;
  --accent: #2f66e6;
  --accent-dark: #183d91;
  --red: #ff3733;
  --lime: #baff5a;
  --focus: #9fbdff;
  --shadow: 0 18px 48px rgb(24 61 145 / 10%);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #eef4ff 0, var(--background) 320px, #ffffff 100%);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.page-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 72px 24px 48px;
  align-content: start;
  justify-items: center;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 12px;
  background:
    linear-gradient(
      90deg,
      var(--accent) 0 58%,
      var(--red) 58% 72%,
      var(--lime) 72% 86%,
      var(--accent-dark) 86% 100%
    );
}

.compact { padding-top: 56px; }

.intro {
  width: min(720px, 100%);
  padding: 0 0 32px;
}

.site-mark {
  display: flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-size: 0.98rem;
  font-weight: 800;
}

.site-mark img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 10px 18px rgb(47 102 230 / 18%));
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 16px 0 0 var(--lime);
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: 2.65rem;
  font-weight: 850;
  line-height: 1.02;
}

.lede {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1rem;
}

.button {
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgb(47 102 230 / 18%);
}

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

.primary:hover {
  background: #2359d4;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.text-button {
  margin-left: 12px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
}

.feedback-form {
  display: grid;
  width: min(560px, 100%);
  gap: 16px;
}

.feedback-form .button {
  justify-self: start;
  min-width: 160px;
}

.form-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.form-status[data-type="success"] { color: #075e36; }

.form-status[data-type="error"] { color: #b42318; }

.page-footer {
  width: min(720px, 100%);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.page-footer a { color: var(--accent-dark); }

.policy-page { width: min(680px, 100%); }

.policy-section {
  margin-bottom: 18px;
  border-left: 4px solid var(--border);
  padding-left: 16px;
}

.policy-section:nth-of-type(3n + 1) { border-left-color: var(--accent); }

.policy-section:nth-of-type(3n + 2) { border-left-color: var(--red); }

.policy-section:nth-of-type(3n) { border-left-color: var(--lime); }

.policy-section h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.policy-section p {
  max-width: 680px;
  color: var(--muted);
}

.policy-updated {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 140px;
  resize: vertical;
  padding: 12px;
}

textarea::placeholder { color: var(--muted); }

select:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .page-shell { padding: 32px 16px; }

  .intro { padding-bottom: 28px; }

  .site-mark {
    margin-bottom: 24px;
  }

  h1 {
    font-size: 1.95rem;
    line-height: 1.1;
  }

  .feedback-form .button { justify-self: stretch; }

  .button { width: 100%; }

  .text-button { margin: 12px 0 0; }
}
