:root {
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f8f9ff;
  --border: #dfe3ee;
  --border-strong: #cfd6e6;
  --border-focus: #22a866;
  --text: #161b2d;
  --text-muted: #596078;
  --accent: #1f9a63;
  --accent-hover: #197e51;
  --accent-muted: #d9f3e6;
  --focus-ring: rgba(31, 154, 99, 0.2);
  --error: #c22727;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-input: 10px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-logo: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shadow-sm: 0 6px 16px rgba(20, 30, 70, 0.05);
  --shadow: 0 18px 44px rgba(22, 34, 74, 0.1);
  --space-xs: 0.35rem;
  --space-sm: 0.65rem;
  --space-md: 1.1rem;
  --space-lg: 1.7rem;
  --space-xl: 2.25rem;
  --space-2xl: 3.2rem;
  --space-3xl: 4.2rem;
  --space-4xl: 5.4rem;
  --max-width: 860px;
  --transition: 0.18s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 8%, rgba(76, 134, 255, 0.12), transparent 34%),
    radial-gradient(circle at 7% 26%, rgba(31, 154, 99, 0.12), transparent 26%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-nav {
  position: sticky;
  top: 0.65rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(1120px, calc(100% - 1.6rem));
  margin: 0.9rem auto 0;
  padding: 0.95rem 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(25, 34, 61, 0.1);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(26, 39, 79, 0.12);
  backdrop-filter: blur(14px) saturate(1.15);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-logo);
  font-size: 1.02rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.site-nav__brand::before {
  content: "VC";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1fb26f, #178653);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 12px rgba(24, 140, 87, 0.28);
}

.site-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.3rem;
  padding: 0.22rem;
  border: 1px solid rgba(25, 34, 61, 0.08);
  background: rgba(241, 245, 252, 0.82);
  border-radius: 999px;
  max-width: max-content;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.site-nav__right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  justify-content: center;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.site-nav__auth {
  display: flex;
  justify-content: flex-end;
  width: auto;
  max-width: 100%;
  padding: 0;
  background: linear-gradient(180deg, rgba(247, 249, 253, 0.92), rgba(242, 246, 252, 0.92));
  border: 1px solid rgba(25, 34, 61, 0.08);
  border-radius: 16px;
  flex: 0 0 auto;
}

.site-nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-nav__link:hover {
  color: var(--text);
  background: rgba(89, 106, 152, 0.13);
}

.site-nav__link.is-active {
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(24, 38, 76, 0.1);
}

.auth-mock {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  width: auto;
  max-width: 100%;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #ccd5e8;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  color: #202124;
  border-radius: 999px;
  padding: 0.34rem 0.68rem 0.34rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.08s ease;
  white-space: nowrap;
}

.google-btn:hover {
  border-color: #aebcdc;
  box-shadow: 0 10px 20px rgba(28, 39, 70, 0.12);
}

.google-btn:active {
  transform: translateY(1px);
}

.google-btn__icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: #4285f4;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
}

.auth-mock__state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ced7ea;
  border-radius: 999px;
  padding: 0.25rem 0.35rem 0.25rem 0.28rem;
}

#google-signin-btn[hidden],
#auth-preferences[hidden],
#auth-state[hidden],
#email-auth-wrap[hidden] {
  display: none !important;
}

.email-auth {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  width: auto;
  max-width: none;
  min-width: 0;
}

.email-auth__row {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.email-auth__row input {
  width: 170px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  padding: 0.48rem 0.62rem;
  border: 1px solid #ccd5e8;
  border-radius: 999px;
  background: #ffffff;
}

.email-auth__row input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

#email-signin-btn {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.84rem;
}

.field-help.success {
  color: var(--accent);
}

#email-signin-status {
  display: none;
}

#email-signin-status:not(:empty) {
  display: block;
  width: auto;
  max-width: 12rem;
  margin: 0;
  font-size: 0.75rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-avatar {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #4285f4;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.auth-email {
  font-size: 0.78rem;
  color: var(--text);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-signout {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
}

.auth-signout:hover {
  background: #f3f5fb;
  color: var(--text);
}

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  text-align: center;
}

.hero__kicker {
  margin: 0 0 var(--space-sm);
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.hero__title {
  font-family: var(--font-logo);
  font-size: clamp(2.1rem, 7vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}

.hero__tagline {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: var(--space-md) auto 0;
  max-width: 62ch;
}

.beta-launch-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem auto 0;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 154, 99, 0.24);
  background: rgba(31, 154, 99, 0.1);
  color: #1a6d47;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.beta-launch-note::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #22a866;
  box-shadow: 0 0 0 4px rgba(34, 168, 102, 0.16);
}

.hero-auth {
  margin-top: 1rem;
  justify-content: center;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-preferences {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.85);
  text-align: left;
}

.auth-mock.signed-in #google-signin-btn,
.auth-mock.signed-in #auth-preferences {
  display: none !important;
}

.hero--about {
  max-width: 920px;
  padding-bottom: var(--space-xl);
}

.hero--about .hero__tagline {
  max-width: 70ch;
}

.page-head-center {
  text-align: center !important;
}

.page-head-center .hero__kicker,
.page-head-center .hero__title,
.page-head-center .hero__tagline {
  text-align: center !important;
}

.page-head-center .hero__tagline {
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-head-center .hero__kicker {
  display: inline-block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(31, 154, 99, 0.1);
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-4xl);
}

.section {
  margin-bottom: calc(var(--space-3xl) + 0.4rem);
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  color: var(--text);
}

.section__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-lg);
  line-height: 1.5;
}

.prose {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.prose p {
  margin: 0 0 var(--space-md);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.about-callout {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.97), rgba(236, 248, 244, 0.9));
  padding: var(--space-xl);
  box-shadow: var(--shadow);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.section.about-grid {
  margin-bottom: var(--space-xl);
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(var(--space-xl) + 0.1rem);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(2px);
}

.info-card--wide {
  grid-column: 1 / -1;
}

.clean-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.clean-list li {
  margin-bottom: 0.6rem;
}

.clean-list li:last-child {
  margin-bottom: 0;
}

.census-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(var(--space-2xl) + 0.2rem);
  box-shadow: var(--shadow);
}

.survey-intro {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-xl);
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.88), rgba(239, 246, 252, 0.9));
  border: 1px solid rgba(25, 34, 61, 0.08);
  border-radius: 16px;
}

.survey-intro__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.survey-intro__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.survey-section + .survey-section {
  margin-top: var(--space-xl);
}

.survey-section {
  padding: 1.25rem;
  border: 1px solid rgba(25, 34, 61, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(31, 154, 99, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.94));
  box-shadow: 0 10px 24px rgba(20, 30, 70, 0.05);
}

.survey-section--consent {
  background:
    radial-gradient(circle at top right, rgba(76, 134, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.95));
}

.survey-section__header {
  margin-bottom: 1rem;
}

.survey-section__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.survey-section__title {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.survey-section__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 60ch;
}

.survey-section__grid {
  gap: var(--space-lg);
}

.survey-section__aside {
  margin-top: 0;
  padding-top: 0.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space-xl) + 0.15rem);
  align-items: start;
  justify-items: stretch;
  grid-auto-flow: row;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: start;
}

.form-grid > .field:not(.field--full) {
  grid-column: span 1;
}

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

.field label {
  display: flex;
  align-items: flex-end;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
  line-height: 1.35;
  min-height: 2.4em;
}

.required {
  color: var(--error);
}

.field select,
.field input {
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  padding: 0.625rem var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23596257' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
  min-height: 2.95rem;
  box-sizing: border-box;
}

.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  box-sizing: border-box;
}

.field input {
  background-image: none;
  padding-right: var(--space-md);
}

.field--checkbox {
  margin-top: 0;
}

.locate-field {
  margin-top: 0;
}

.locate-btn {
  width: fit-content;
  padding: 0.55rem 0.9rem;
}

.field-help {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.field-help.error {
  color: var(--error);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(25, 34, 61, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.checkbox-label input[type="checkbox"] {
  appearance: auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  padding: 0;
  border: none;
  box-shadow: none;
  flex: 0 0 auto;
}

.field select:hover,
.field input:hover,
.field textarea:hover {
  border-color: #c4cee3;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.date-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.date-row select,
.date-row input {
  flex: 1;
  min-width: 0;
}

.date-row select:first-of-type {
  min-width: 7rem;
}

.date-row select:nth-of-type(2) {
  min-width: 5rem;
}

.date-row select:last-of-type {
  min-width: 5.5rem;
}

.form-actions {
  margin-top: calc(var(--space-2xl) + 0.2rem);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem var(--space-xl);
  border: none;
  border-radius: var(--radius-input);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(31, 154, 99, 0.24);
}

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

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.95);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: var(--space-md);
  font-size: 0.9375rem;
  min-height: 1.4em;
}

.form-message.success {
  color: var(--accent);
}

.form-message.error {
  color: var(--error);
}

.charts {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(var(--space-xl) + 0.1rem);
  box-shadow: var(--shadow-sm);
}

.chart-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  color: var(--text);
}

.about-ref-title {
  margin-top: var(--space-lg);
  line-height: 1.45;
}

.section--notice {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: var(--space-2xl);
}

.about-main {
  padding-bottom: var(--space-2xl);
}

.about-main .section--notice {
  margin-bottom: 0;
}

.chart-card__legend {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

.chart-card--map .chart-card__title {
  margin-bottom: 0;
}

.map-wrap {
  height: 340px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-hover);
}

.map-wrap .leaflet-tile-pane { filter: brightness(0.97); }
.map-wrap .leaflet-control-attribution { font-size: 10px; opacity: 0.7; color: var(--text-muted); }
.map-wrap .leaflet-control-attribution a { color: var(--accent); }
.leaflet-tooltip.map-tooltip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8125rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-input);
  box-shadow: var(--shadow);
}

.chart-wrap {
  position: relative;
  height: 260px;
}

.thankyou-main {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4rem;
}

.thankyou-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% -30%, rgba(31, 154, 99, 0.09), transparent 52%),
    linear-gradient(180deg, #ffffff, #fbfcff);
}

.thankyou-card .hero__kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(31, 154, 99, 0.1);
}

.thankyou-card .hero__title {
  font-size: clamp(2rem, 5.2vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 auto 0.65rem;
  max-width: 16ch;
}

.thankyou-card .section__subtitle {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 1.08rem;
}

.thankyou-actions {
  display: flex;
  gap: 0.95rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.thankyou-actions .btn {
  min-width: 190px;
  padding-top: 0.78rem;
  padding-bottom: 0.78rem;
}

.privacy-date {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  justify-content: center;
  margin: 0 auto 1.6rem;
  font-size: 1rem;
  color: #526086;
  font-weight: 600;
}

.privacy-date span {
  color: #2a3555;
  font-weight: 700;
}

.mailing-form {
  margin-top: 1rem;
}

.profile-section {
  margin-top: 1.25rem;
}

.profile-panel,
.privacy-panel {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-panel .section__title {
  margin-top: 1.7rem;
  margin-bottom: 0.75rem;
}

.privacy-panel .section__title:first-of-type {
  margin-top: 0.9rem;
}

.privacy-panel .prose,
.privacy-panel .clean-list {
  margin: 0 0 1.15rem;
}

.profile-empty {
  margin-top: 1.25rem;
  padding: 1.9rem 2rem;
  border-color: #cad7e8;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(241, 247, 252, 0.94));
}

.profile-empty .section__title {
  margin-bottom: 0.6rem;
  font-size: 2rem;
}

.profile-empty .section__subtitle {
  margin-bottom: 0;
  font-size: 1.03rem;
}

.profile-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 8px 20px rgba(22, 34, 74, 0.06);
}

.profile-card p {
  margin: 0.3rem 0;
  color: var(--text-muted);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.profile-actions .form-message {
  width: 100%;
}

.profile-preferences {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 0.65rem 0.75rem;
  background: #ffffff;
}

.preference-row strong {
  display: block;
  font-size: 0.93rem;
  color: var(--text);
}

.preference-row small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background: #ccd4e7;
  border-radius: 999px;
  transition: background var(--transition);
}

.switch-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition);
}

.switch input:checked + .switch-slider {
  background: var(--accent);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
}

.cookie-settings-trigger {
  position: static;
  z-index: auto;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(22, 34, 74, 0.1);
  margin-top: 0.75rem;
}

.cookie-settings-trigger:hover {
  background: #ffffff;
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid rgba(25, 34, 61, 0.08);
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .site-nav {
    width: calc(100% - 1.2rem);
    top: 0.5rem;
  }

  .site-nav {
    align-items: flex-start;
  }

  .site-nav__right {
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
  }

  .site-nav__auth {
    align-self: flex-end;
  }

  main {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .hero {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 0.98rem;
  }

  .hero {
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  }

  .hero__title {
    font-size: clamp(1.85rem, 10vw, 2.5rem);
    line-height: 1.08;
  }

  .hero__tagline {
    font-size: 0.97rem;
  }

  .beta-launch-note {
    font-size: 0.76rem;
    padding: 0.45rem 0.7rem;
    margin-top: 0.85rem;
  }

  .about-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .census-form,
  .info-card,
  .about-callout {
    padding: var(--space-xl);
  }

  .survey-section {
    padding: 1rem;
  }

  .survey-intro {
    padding: 0.9rem 1rem;
  }

  .site-nav {
    top: 0.45rem;
    width: calc(100% - 1rem);
    padding: 0.75rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 14px;
    gap: 0.7rem;
  }

  .site-nav__brand {
    width: 100%;
    justify-content: center;
  }

  .site-nav__right {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-left: 0;
  }

  .site-nav__links {
    width: auto;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    padding: 0.2rem;
    justify-items: center;
    margin: 0 auto;
  }

  .site-nav__link {
    text-align: center;
    padding: 0.48rem 0.4rem;
    font-size: 0.84rem;
  }

  .site-nav__auth {
    padding: 0;
    background: transparent;
    border: none;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .auth-mock {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
  }

  .auth-mock__state {
    width: 100%;
    justify-content: space-between;
  }

  .email-auth {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .email-auth__row {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .email-auth__row input {
    width: 100%;
    min-width: 0;
  }

  .google-btn {
    width: 100%;
    justify-content: center;
    min-height: 2.2rem;
    padding-top: 0.44rem;
    padding-bottom: 0.44rem;
    gap: 0.55rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  #email-signin-status:not(:empty) {
    max-width: none;
    width: 100%;
    text-align: center;
  }

  .auth-email {
    max-width: 7.5rem;
  }

  .date-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .date-row select,
  .date-row input,
  .date-row select:first-of-type,
  .date-row select:nth-of-type(2),
  .date-row select:last-of-type {
    min-width: 0;
    width: 100%;
  }

  .field select,
  .field input,
  .field textarea {
    min-height: 2.7rem;
  }

  .field label {
    min-height: 0;
  }

  .btn {
    min-height: 2.75rem;
  }

  .form-actions .btn,
  .about-callout .btn,
  .thankyou-actions .btn,
  .profile-actions .btn {
    width: 100%;
  }

  .thankyou-main {
    padding-top: 3.2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .thankyou-card {
    padding: 1.95rem;
  }

  .profile-empty {
    padding: 1.25rem 1.1rem;
  }

  .profile-empty .section__title {
    font-size: 1.5rem;
  }

  .profile-empty .section__subtitle {
    font-size: 0.97rem;
  }

  .thankyou-card .hero__title {
    max-width: 13ch;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 0.75rem;
    left: 0.65rem;
    right: 0.65rem;
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .cookie-settings-trigger {
    right: 0.65rem;
    bottom: 4.35rem;
    font-size: 0.75rem;
    padding: 0.42rem 0.68rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .cookie-btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-height: 2.5rem;
  }

  .preference-row {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .site-nav__brand {
    font-size: 0.92rem;
  }

  .site-nav__link {
    font-size: 0.8rem;
    padding: 0.45rem 0.35rem;
  }

  main,
  .hero {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .section__title {
    font-size: 1.1rem;
  }

  .chart-wrap {
    height: 220px;
  }
}
