:root {
  --bg: #f4f7f1;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #143126;
  --muted: #5b7065;
  --line: rgba(20, 49, 38, 0.14);
  --brand: #1b4332;
  --brand-soft: #40916c;
  --accent: #d8f3dc;
  --warning: #8a5a00;
  --error: #9f1d1d;
  --success: #176b43;
  --shadow: 0 24px 70px rgba(27, 67, 50, 0.12);
  --radius: 22px;
  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

/* Reset native control chrome up front. Without this, iOS Safari/Chrome
   (WebKit) can paint a default grey button background even when a button's
   own `background` is set to none/transparent, regardless of desktop
   Chrome/Firefox rendering it correctly — every button class below relies on
   this being reset so its own background/border styling is the only thing
   that paints. */
button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font: inherit;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background-color: #eef4ee;
  background-image:
    radial-gradient(circle at top left, rgba(64, 145, 108, 0.2), transparent 34%),
    radial-gradient(circle at right, rgba(216, 243, 220, 0.82), transparent 28%),
    linear-gradient(180deg, #f7faf5 0%, #eef4ee 100%);
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #eef4ee;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 49, 38, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 49, 38, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.logo {
  display: block;
  width: min(100%, 286px);
  height: auto;
}

.topbar-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.topbar-link:hover,
.topbar-link:focus-visible {
  text-decoration: underline;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.section,
.signup-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: clamp(28px, 4vw, 46px);
}

.hero-panel {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(216, 243, 220, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.eyebrow,
.panel-label {
  margin: 0 0 16px;
  color: var(--brand-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
legend {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.pitch {
  margin: 22px 0 0;
  max-width: 44rem;
  color: var(--brand);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  font-weight: 700;
  line-height: 1.45;
}

.summary {
  margin: 18px 0 0;
  max-width: 43rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions,
.submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 0 22px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  box-shadow: 0 14px 30px rgba(27, 67, 50, 0.22);
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.privacy-note,
.submit-copy,
.form-note,
.inline-help {
  color: var(--muted);
  font-size: 0.94rem;
}

.privacy-note {
  max-width: 320px;
}

.trip-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip-list li {
  padding: 16px;
  border: 1px solid rgba(20, 49, 38, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.trip-list strong,
.trip-list span {
  display: block;
}

.trip-list strong {
  color: var(--brand);
  font-family: var(--font-head);
}

.trip-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 36px);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro-body p,
.form-heading p {
  margin: 0;
  color: var(--muted);
}

.form-heading h2 + p {
  margin-top: 22px;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: rgba(255, 255, 255, 0.78);
}

.form-heading {
  position: sticky;
  top: 24px;
}

.signup-form {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface-strong);
  box-shadow: none;
}

.form-top {
  display: grid;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--brand);
  font-weight: 700;
}

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

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  border: 1px solid rgba(20, 49, 38, 0.18);
  border-radius: 14px;
  background: #fbfdf9;
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--brand-soft);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.13);
}

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

fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(20, 49, 38, 0.12);
  border-radius: 18px;
  background: #fbfdf9;
}

legend {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.25;
}

legend span:not(.q-num) {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 8px;
}

fieldset > .field {
  margin-top: 16px;
  clear: both;
}

.choice-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid label {
  display: flex;
  min-height: 46px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(20, 49, 38, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.35;
  padding: 12px;
}

.choice-grid label:has(input:checked) {
  border-color: rgba(64, 145, 108, 0.55);
  background: rgba(216, 243, 220, 0.6);
}

.choice-grid input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--brand-soft);
}

.choice-subgroup {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.choice-subgroup-label {
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

.choice-subgroup-label span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 4px;
}

.choice-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 2px 0;
}

.choice-divider::before,
.choice-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.inline-help {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: var(--warning);
  font-weight: 600;
}

.submit-row {
  margin-top: 2px;
}

.button-submit {
  min-width: 210px;
}

.submit-copy {
  max-width: 360px;
  margin: 0;
}

.status-message {
  display: none;
  border-radius: 16px;
  padding: 16px;
  font-weight: 700;
}

.status-message.is-visible {
  display: block;
}

.status-message.success {
  border: 1px solid rgba(23, 107, 67, 0.22);
  background: rgba(216, 243, 220, 0.78);
  color: var(--success);
}

.status-message.warning {
  border: 1px solid rgba(138, 90, 0, 0.22);
  background: rgba(255, 246, 217, 0.9);
  color: var(--warning);
}

.status-message.error {
  border: 1px solid rgba(159, 29, 29, 0.2);
  background: rgba(255, 235, 235, 0.9);
  color: var(--error);
}

.how-section {
  display: grid;
  gap: 26px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.how-step {
  padding: 22px 20px;
  border: 1px solid rgba(20, 49, 38, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.step-num {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.how-step strong {
  display: block;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.how-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-meta {
  margin-top: 18px;
  color: var(--brand-soft);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.q-num {
  display: inline-block;
  margin-right: 7px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(64, 145, 108, 0.13);
  color: var(--brand-soft);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.form-heading .form-heading-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.5;
}

.form-heading .form-meta {
  margin-top: 22px;
}

.survey-details {
  border: 1px solid rgba(20, 49, 38, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: #fbfdf9;
}

.survey-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.survey-summary::-webkit-details-marker { display: none; }
.survey-summary::marker { content: ""; }

.survey-summary-content {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.survey-summary-title {
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}

.survey-optional {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
}

.survey-chevron {
  color: var(--brand-soft);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 220ms ease;
}

.survey-progress {
  display: none;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--brand-soft);
  background: rgba(64, 145, 108, 0.12);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.survey-progress.is-visible {
  display: inline-flex;
}

details[open] .survey-chevron {
  transform: rotate(90deg);
}

.survey-questions {
  display: grid;
  gap: 22px;
}

.share-section {
  padding-top: 20px;
  border-top: 1px solid rgba(20, 49, 38, 0.1);
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.share-prompt {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.share-open-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(20, 49, 38, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 140ms ease, border-color 140ms ease;
}

.share-open-btn:hover,
.share-open-btn:focus-visible {
  background: rgba(64, 145, 108, 0.09);
  border-color: rgba(64, 145, 108, 0.45);
}

.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 49, 38, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: modal-in 160ms ease;
}

.share-modal-overlay[hidden] {
  display: none;
}

@keyframes modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.share-modal-card {
  width: 100%;
  max-width: 440px;
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: 0 32px 80px rgba(27, 67, 50, 0.26);
  padding: 28px;
  animation: modal-card-in 180ms ease;
}

@keyframes modal-card-in {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.share-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-head);
  color: var(--brand);
}

.share-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: rgba(20, 49, 38, 0.07);
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 140ms ease;
}

.share-modal-close:hover {
  background: rgba(20, 49, 38, 0.14);
}

.share-modal-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.share-modal-text {
  display: block;
  width: 100%;
  border: 1px solid rgba(20, 49, 38, 0.18);
  border-radius: 14px;
  background: #fbfdf9;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.55;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  margin-bottom: 16px;
}

.share-modal-text:focus {
  border-color: var(--brand-soft);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.13);
}

.share-modal-copy-btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: #ffffff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.share-modal-copy-btn:hover {
  opacity: 0.88;
}

.share-modal-copy-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

#report-issue-form .field {
  margin-bottom: 14px;
}

#report-issue-form .optional-tag {
  color: var(--muted);
  font-weight: 500;
}

#report-issue-form #report-status {
  margin-bottom: 14px;
}

#report-issue-form #report-status.is-visible {
  margin-top: -2px;
}

.footer-report-btn {
  display: inline;
  width: auto;
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.93rem;
  text-decoration: underline;
  text-decoration-color: rgba(118, 138, 128, 0.4);
  cursor: pointer;
}

.footer-report-btn:hover,
.footer-report-btn:focus-visible {
  color: var(--brand);
}

/* ─── In-modal "Report an issue" trigger ─── */
.survey-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.survey-modal-report-btn {
  display: inline;
  width: auto;
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  padding: 6px 2px;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(118, 138, 128, 0.4);
  white-space: nowrap;
  cursor: pointer;
}

.survey-modal-report-btn:hover,
.survey-modal-report-btn:focus-visible {
  color: var(--brand);
}

.share-section.is-prominent {
  border: 1px solid rgba(64, 145, 108, 0.28);
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(216, 243, 220, 0.3);
}

.share-section.is-prominent .share-prompt {
  color: var(--brand);
  font-weight: 700;
}

/* ─── Unified survey modal ─── */
.survey-backdrop {
  position: fixed;
  inset: 0;
  z-index: 149;
  background: rgba(20, 49, 38, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.survey-backdrop[hidden] {
  display: none;
}

.survey-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 150;
  width: min(660px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 32px 80px rgba(20, 49, 38, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.survey-modal[hidden] {
  display: none;
}

.survey-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.survey-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.survey-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 49, 38, 0.07);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 160ms;
}

.survey-modal-close:hover {
  background: rgba(20, 49, 38, 0.13);
}

.survey-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 28px 32px 16px;
}

.survey-modal-body .survey-questions {
  display: block;
}

.survey-modal-body fieldset {
  border: none;
  padding: 0;
  background: transparent;
}

.survey-modal-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  padding-bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 16px));
}

.survey-footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.survey-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 160ms;
}

.survey-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.survey-btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: #ffffff;
}

.survey-btn-primary:hover:not(:disabled) {
  opacity: 0.88;
}

.survey-btn-back {
  background: rgba(20, 49, 38, 0.07);
  color: var(--text);
  margin-right: auto;
}

.survey-btn-back:hover:not(:disabled) {
  background: rgba(20, 49, 38, 0.12);
}

.survey-btn-text {
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color 160ms;
}

.survey-btn-text:hover {
  color: var(--text);
}

/* Intro page */
.survey-intro-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
}

.survey-intro-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
}

.survey-intro-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.survey-intro-topics {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

/* Free-form page with summary */
.survey-freeform-page {
  display: grid;
  gap: 20px;
}

.survey-summary-block {
  padding: 14px 18px;
  background: rgba(64, 145, 108, 0.07);
  border: 1px solid rgba(64, 145, 108, 0.2);
  border-radius: 14px;
  display: grid;
  gap: 10px;
}

.survey-summary-block:empty {
  display: none;
}

.survey-summary-count {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
}

.survey-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.survey-summary-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.survey-summary-pill.answered {
  background: rgba(64, 145, 108, 0.15);
  color: var(--brand);
}

.survey-summary-pill.skipped {
  background: rgba(20, 49, 38, 0.07);
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 8px 2px 0;
  color: var(--muted);
  font-size: 0.93rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .intro,
  .form-section {
    grid-template-columns: 1fr;
  }

  .form-heading {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 18px 14px 22px;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .logo {
    width: min(100%, 200px);
  }

  .topbar-link {
    padding-top: 8px;
    white-space: nowrap;
  }

  .hero-copy,
  .hero-panel,
  .section,
  .signup-form {
    border-radius: 18px;
  }

  .how-steps,
  .form-grid,
  .choice-grid,
  .store-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer {
    display: grid;
    gap: 6px;
    text-align: center;
  }

  .button,
  .button-submit {
    width: 100%;
  }

  /* Mobile: unified survey modal as bottom sheet */
  .survey-modal {
    top: clamp(60px, 14vh, 110px);
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: none;
    transform: none;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 40px rgba(20, 49, 38, 0.2);
  }

  .survey-modal-header {
    background: var(--brand);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    padding: 16px 20px;
  }

  .survey-modal-title {
    color: #ffffff;
    font-size: 0.95rem;
  }

  .survey-modal-close {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
  }

  .survey-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
  }

  .survey-modal-report-btn {
    color: rgba(255, 255, 255, 0.82);
    text-decoration-color: rgba(255, 255, 255, 0.45);
  }

  .survey-modal-report-btn:hover,
  .survey-modal-report-btn:focus-visible {
    color: #ffffff;
  }

  .survey-modal-body {
    padding: 20px 20px 6px;
    mask-image: linear-gradient(to bottom, black calc(100% - 76px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 76px), transparent 100%);
  }

  .survey-modal-body.is-scrolled-to-end {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .survey-modal-footer {
    padding: 12px 20px;
    padding-bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  }
}

