:root {
  --blue: #143b6f;
  --dark: #08284f;
  --red: #d8263f;
  --ink: #10233b;
  --muted: #5f6d7d;
  --white: #fff;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #eef2f6; }
body {
  margin: 0;
  color: var(--ink);
  background: #eef2f6;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
a { color: inherit; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  min-height: 92px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0 4px 18px rgb(8 40 79 / 7%);
  position: relative;
  z-index: 10;
}
.brand-mark { display: block; width: 178px; line-height: 0; }
.brand-mark img { display: block; width: 100%; height: auto; }
.welcome-panel, .survey-hero {
  min-height: 610px;
  padding: clamp(54px, 7vw, 86px) max(24px, calc((100vw - 1180px) / 2)) 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  gap: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 22%, rgb(255 255 255 / 11%), transparent 27rem),
    linear-gradient(180deg, #15568f 0%, #326fa7 47%, #bfd2e4 100%);
}
.welcome-copy, .survey-intro { position: relative; z-index: 2; max-width: 620px; padding-top: 12px; }
.eyebrow {
  margin: 0 0 20px;
  color: var(--red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.welcome-panel .eyebrow, .survey-hero .eyebrow { color: #fff; opacity: .85; }
h1 { margin: 0; color: var(--dark); font-size: clamp(2.65rem, 6vw, 5.4rem); line-height: .96; letter-spacing: -.055em; }
.welcome-panel h1, .survey-hero h1 { color: #fff; text-shadow: 0 2px 16px rgb(8 40 79 / 14%); }
.lead { max-width: 660px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.27rem); line-height: 1.65; }
.welcome-panel .lead, .survey-hero .lead { color: rgb(255 255 255 / 94%); }
.survey-founders { position: relative; min-width: 0; align-self: end; }
.survey-founders img { display: block; width: 116%; max-width: none; height: auto; margin-left: -8%; filter: drop-shadow(0 18px 22px rgb(8 40 79 / 16%)); }
.survey-panel { background: #eef2f6; padding-bottom: 52px; }
.survey-hero { min-height: 470px; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 36px; }
.project-pill {
  display: inline-flex; margin-top: 20px; padding: 9px 13px;
  color: #fff; background: rgb(255 255 255 / 16%); border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px; font-size: .82rem; font-weight: 800;
}
.survey-card {
  position: relative; z-index: 5;
  width: min(720px, calc(100% - 48px));
  margin: -86px 0 0 max(24px, calc((100vw - 1180px) / 2));
  padding: clamp(28px, 5vw, 44px);
  background: rgb(255 255 255 / 97%);
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 22px;
  box-shadow: 0 22px 55px rgb(8 40 79 / 19%);
}
fieldset { border: 0; margin: 0; padding: 0; }
legend, label { display: block; margin: 0 0 14px; color: var(--ink); font-weight: 800; }
label span { color: var(--muted); font-weight: 400; }
.rating-group { display: grid; grid-template-columns: repeat(5, minmax(54px, 1fr)); gap: 12px; margin-bottom: 34px; }
.rating-button {
  min-height: 76px; color: var(--blue); background: #fff;
  border: 2px solid #c9d3e0; border-radius: 14px; cursor: pointer;
  font-size: 1.35rem; font-weight: 900;
}
.rating-button:hover { border-color: var(--blue); transform: translateY(-2px); }
.rating-button[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.rating-button span { display: block; margin-top: 4px; font-size: .64rem; }
textarea { width: 100%; min-height: 155px; resize: vertical; padding: 18px; border: 2px solid #c9d3e0; border-radius: 14px; line-height: 1.55; }
.character-count { margin: 8px 0 0; color: var(--muted); font-size: .78rem; text-align: right; }
.submit-row { margin-top: 28px; display: flex; align-items: center; gap: 20px; }
.submit-button { min-height: 52px; padding: 0 28px; color: #fff; background: var(--red); border: 0; border-radius: 11px; cursor: pointer; font-weight: 900; text-transform: uppercase; }
.submit-button:disabled { opacity: .6; }
.form-error { margin: 0; color: #b71831; font-weight: 700; }
.privacy-note { margin: 28px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.site-footer { width: min(1180px, calc(100% - 40px)); min-height: 96px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .83rem; font-weight: 700; text-transform: uppercase; }
.site-footer a { text-decoration: none; }
.simple-panel { width: min(920px, calc(100% - 40px)); margin: auto; padding: clamp(34px, 7vw, 72px); background: #fff; border-radius: 18px; box-shadow: 0 22px 70px rgb(8 40 79 / 12%); }
.simple-panel h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
.support-card { margin-top: 32px; padding: 22px 24px; background: #f4f7fb; border-left: 5px solid var(--red); }
.support-card strong, .support-card span { display: block; }
.support-card span { margin-top: 7px; color: var(--muted); }
.thanks-icon { width: 64px; height: 64px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-size: 1.7rem; font-weight: 900; }
.loading { margin: auto; color: var(--muted); font-weight: 700; }
button:focus-visible, textarea:focus, a:focus-visible { outline: 3px solid #f4b942; outline-offset: 3px; }

@media (max-width: 680px) {
  .site-header { min-height: 68px; padding: 0 18px; }
  .brand-mark { width: 136px; }
  .welcome-panel, .survey-hero {
    min-height: 0; grid-template-columns: 1fr; gap: 0;
    padding: 30px 22px 0;
  }
  .survey-intro, .welcome-copy { padding-top: 0; }
  .survey-hero .eyebrow { margin-bottom: 13px; }
  .survey-hero h1 { font-size: clamp(2.35rem, 11vw, 3.15rem); }
  .survey-hero .lead { margin-top: 19px; font-size: 1rem; line-height: 1.5; }
  .project-pill { margin-top: 15px; }
  .survey-founders { margin: -50px -22px 0; }
  .survey-founders img { width: 110%; margin-left: -5%; }
  .survey-card { width: calc(100% - 24px); margin: -24px auto 0; padding: 28px 22px; border-radius: 18px; }
  .rating-group { gap: 7px; }
  .rating-button { min-height: 65px; font-size: 1.12rem; }
  .rating-button span { display: none; }
  .submit-row { align-items: flex-start; flex-direction: column; }
}
