:root {
  --bg: #f4efe8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --ink: #1b2430;
  --muted: #596579;
  --line: rgba(27, 36, 48, 0.1);
  --accent: #0f766e;
  --accent-strong: #0a4f4a;
  --accent-soft: #d9f3ee;
  --warm: #d97706;
  --danger: #b42318;
  --shadow: 0 24px 80px rgba(33, 30, 28, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(217, 119, 6, 0.18), transparent 20%),
    linear-gradient(180deg, #f8f4ec 0%, #efe7dc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
}

body[data-page="survey"] {
  color: #f5f7fa;
  background:
    radial-gradient(circle at top left, rgba(27, 140, 201, 0.2), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(255, 184, 77, 0.16), transparent 20%),
    linear-gradient(180deg, #071018 0%, #0d1c28 46%, #132838 100%);
}

body[data-page="survey"]::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

a {
  color: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.narrow-shell {
  width: min(860px, calc(100% - 24px));
}

.site-header,
.trust-strip,
.feature-card,
.step-card,
.metric-card,
.data-panel,
.interest-card,
.glass-panel,
.builder-panel,
.survey-shell,
.saved-item,
.question-card,
.response-card,
.product-card,
.story-card,
.experience-card,
.brand-brief,
.window-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(51, 42, 34, 0.08);
}

.header-actions:empty {
  display: none !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.brand strong,
.section-heading h2,
.workflow-copy h2,
.cta-copy h2,
.hero h1,
.logo-copy h2,
.page-intro h1,
.survey-shell h1,
.auth-shell h1,
.builder-panel h2,
.data-panel h2,
.product-card h3,
.story-card h3,
.experience-card h3,
.brand-brief h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-nav,
.header-actions,
.hero-actions,
.builder-actions,
.hero-badges,
.slogan-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  color: var(--ink);
}

.primary-button,
.secondary-button,
.ghost-button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.24);
}

.secondary-button,
.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.text-button:hover,
.button-link:hover {
  transform: translateY(-1px);
}

.disabled-link {
  opacity: 0.55;
  pointer-events: none;
}

.hero,
.workflow-section,
.cta-section,
.app-grid,
.story-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}

.app-main {
  padding-top: 44px;
}

.hero {
  align-items: center;
  padding: 72px 0 56px;
}

.page-intro,
.auth-shell,
.survey-shell {
  margin-bottom: 28px;
}

.page-intro h1,
.survey-shell h1,
.auth-shell h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.page-intro p,
.survey-description,
.helper-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.3rem);
  line-height: 0.95;
  max-width: 10ch;
}

.hero-text,
.section-heading p,
.workflow-copy p,
.cta-copy p,
.feature-card p,
.product-card p,
.story-card p,
.experience-card p,
.brand-brief p,
.step-card p,
.metric-card span,
.mini-card span,
.mini-card li,
.window-card small,
.interest-card label,
.helper-text,
.saved-item p,
.question-card p,
.response-card p,
.form-message,
.stack-form label {
  color: var(--muted);
}

.hero-text {
  max-width: 56ch;
  margin: 22px 0 28px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-badges {
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-badges span,
.product-tag,
.window-label,
.story-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 36, 48, 0.08);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-stats,
.feature-grid,
.product-grid,
.dashboard-top,
.dashboard-panels,
.workflow-steps,
.mini-grid,
.window-grid,
.story-stack,
.saved-list,
.question-list,
.stack-form,
.saved-item,
.question-card,
.response-card,
.answer-list {
  display: grid;
  gap: 18px;
}

.hero-stats {
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.hero-stats li,
.feature-card,
.product-card,
.story-card,
.experience-card,
.brand-brief,
.window-card,
.step-card,
.metric-card,
.data-panel,
.interest-card,
.builder-panel,
.survey-shell,
.saved-item,
.question-card,
.response-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-stats li,
.feature-card,
.product-card,
.story-card,
.experience-card,
.brand-brief,
.window-card,
.step-card,
.metric-card,
.data-panel,
.interest-card,
.builder-panel,
.survey-shell,
.saved-item,
.question-card,
.response-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.hero-stats li {
  border-radius: var(--radius-md);
  padding: 18px;
}

.glass-panel {
  padding: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.brand-window {
  display: grid;
  gap: 20px;
}

.logo-window {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.logo-orb {
  display: grid;
  place-items: center;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, #0f766e, #134e4a 52%, #0b1f30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 24px 60px rgba(11, 31, 48, 0.22);
}

.logo-orb span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
}

.logo-copy h2 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.logo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.slogan-ribbon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slogan-ribbon span {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.12);
  font-weight: 800;
}

.panel-head {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.panel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(27, 36, 48, 0.15);
}

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

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

.mini-card {
  min-height: 170px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(27, 36, 48, 0.06);
}

.accent-card {
  color: white;
  background: linear-gradient(135deg, #0f766e, #134e4a 65%, #0b1f30);
}

.accent-card p,
.accent-card span {
  color: rgba(255, 255, 255, 0.82);
}

.window-card {
  display: grid;
  gap: 10px;
  min-height: 152px;
  background: rgba(255, 255, 255, 0.82);
}

.window-card p,
.window-card strong,
.window-card small {
  margin: 0;
}

.window-card p {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.window-card strong {
  font-size: 1.1rem;
}

.accent-window-card {
  color: white;
  background: linear-gradient(135deg, #0f766e, #134e4a 58%, #0b1f30);
}

.accent-window-card p,
.accent-window-card small {
  color: rgba(255, 255, 255, 0.82);
}

.mini-card h2,
.mini-card h3,
.builder-panel h2,
.data-panel h2 {
  margin: 10px 0 12px;
}

.mini-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.bar-group {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.bar {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--warm), #f7c35f);
}

.bar-large { width: 100%; }
.bar-medium { width: 72%; }
.bar-small { width: 48%; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.trust-strip div {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-weight: 700;
}

.feature-section {
  padding: 96px 0 32px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.workflow-copy h2,
.cta-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.05;
}

.section-heading p,
.workflow-copy p,
.cta-copy p {
  margin: 0;
  line-height: 1.8;
}

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

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

.product-card {
  display: grid;
  gap: 14px;
}

.product-card h3,
.story-card h3,
.experience-card h3,
.brand-brief h3 {
  margin: 0;
  font-size: 1.45rem;
}

.product-card-featured {
  grid-column: span 2;
  background: linear-gradient(180deg, #123a53 0%, #0f766e 100%);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.product-card-featured .product-tag {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.product-card-featured p {
  color: rgba(255, 255, 255, 0.84);
}

.product-card-wide {
  grid-column: span 2;
}

.product-slogan {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
}

.story-stack {
  align-content: start;
}

.story-card,
.experience-card,
.brand-brief {
  display: grid;
  gap: 14px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.workflow-section,
.cta-section {
  padding: 64px 0 24px;
}

.workflow-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--warm);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.dashboard-top {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}

.dashboard-panels {
  grid-template-columns: 1.2fr 0.8fr;
}

.dashboard-full-span {
  grid-column: 1 / -1;
}

.metric-card p,
.mini-card p {
  margin: 0;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 2.2rem;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.directory-actions,
.csv-action-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.directory-actions {
  text-align: right;
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 800;
}

.stack-form label,
.interest-card label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.optional-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 700;
}

.checkbox-row input {
  width: auto;
  margin-top: 3px;
}

.checkbox-row span {
  color: var(--ink);
  line-height: 1.6;
}

.stack-form .usage-followup-field {
  display: flex;
}

.compact-stack {
  margin-bottom: 20px;
}

.category-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.category-option-list {
  display: grid;
  gap: 10px;
}

.contact-type-panel,
.contact-import-panel,
.contact-record-panel,
.recipient-directory-panel {
  grid-column: 1 / -1;
}

.contact-import-form {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(180px, 240px);
  align-items: end;
  gap: 14px;
}

.contact-import-form .contact-import-replace-row,
.contact-import-form .builder-actions {
  grid-column: 1 / -1;
}

.import-preview-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.import-preview-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding-right: 6px;
}

.contact-record-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  column-gap: 16px;
  row-gap: 18px;
}

.contact-record-form #customer-form-mode,
.contact-record-form .builder-actions {
  grid-column: 1 / -1;
}

.contact-field-wide,
.contact-type-field,
.contact-notes-field {
  grid-column: span 2;
}

.contact-record-form .category-option-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.contact-record-form textarea {
  min-height: 78px;
}

.contact-consent-row {
  min-height: 80px;
}

.category-fieldset legend {
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--ink);
}

.contact-type-list {
  min-height: 44px;
}

.contact-type-pill {
  gap: 8px;
}

.inline-export-button {
  font-size: 0.8rem;
}

.inline-delete-button {
  color: var(--danger);
  font-size: 0.8rem;
}

.compact-empty-state {
  margin: 0;
}

.section-divider {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.campaign-meta {
  min-height: 44px;
}

.contact-directory-controls {
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 280px);
  gap: 14px;
  margin-bottom: 12px;
}

.launch-preview-actions {
  justify-content: flex-start;
}

.launch-review-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
}

.launch-review-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.launch-review-head h3,
.launch-review-block h4 {
  margin: 0;
}

.launch-review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.launch-review-block {
  display: grid;
  align-content: start;
  gap: 12px;
}

.recipient-preview-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
}

.recipient-preview-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
}

.recipient-preview-item {
  display: grid;
  gap: 2px;
  color: var(--ink);
}

.recipient-preview-item strong,
.recipient-preview-item span,
.recipient-preview-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-preview-item span,
.recipient-preview-item small {
  color: var(--muted);
  font-weight: 700;
}

.customer-list {
  max-height: min(72vh, 760px);
  overflow: auto;
  padding-right: 6px;
  gap: 8px;
}

.customer-card {
  gap: 12px;
}

.directory-contact-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(260px, 1.25fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(33, 30, 28, 0.08);
}

.contact-row-main {
  min-width: 0;
}

.contact-row-main h3 {
  margin: 0 0 3px;
  font-size: 1rem;
  line-height: 1.15;
}

.contact-row-main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-row-meta {
  gap: 6px;
}

.contact-row-meta span {
  padding: 6px 9px;
  font-size: 0.78rem;
}

.contact-row-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
}

.contact-row-actions .small-button {
  padding: 8px 10px;
  font-size: 0.82rem;
}

.contact-row-notes {
  grid-column: 1 / -1;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.4;
}

.customer-card-head {
  align-items: flex-start;
}

.compact-row {
  margin-bottom: 6px;
}

.customer-notes {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

#customer-form-mode {
  margin: 0;
}

.selectable-card {
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.selectable-card.active {
  border-color: rgba(15, 118, 110, 0.4);
  background: rgba(217, 243, 238, 0.88);
}

.recipient-toggle {
  cursor: pointer;
}

.stack-form input,
.stack-form textarea,
.stack-form select,
.interest-card input,
.interest-card textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.stack-form .checkbox-row input,
.stack-form input[type="checkbox"],
.stack-form input[type="radio"] {
  width: auto;
  min-width: 16px;
  flex: 0 0 auto;
}

.stack-form select {
  appearance: none;
}

.stack-form textarea,
.interest-card textarea {
  min-height: 120px;
  resize: vertical;
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus,
.interest-card input:focus,
.interest-card textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.2);
  border-color: rgba(15, 118, 110, 0.4);
}

.stack-form input:disabled {
  background: rgba(236, 239, 238, 0.85);
  color: var(--muted);
  cursor: not-allowed;
}

.auth-shell {
  display: grid;
  place-items: center;
}

.auth-shell .builder-panel {
  width: min(100%, 560px);
}

.helper-text {
  font-size: 0.92rem;
  font-weight: 700;
}

.question-card textarea {
  min-height: 88px;
}

#builder-form,
#builder-form .question-card,
#saved-surveys .saved-item {
  min-width: 0;
}

#builder-form .question-card {
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(33, 30, 28, 0.08);
  overflow: hidden;
}

#builder-form .question-card .panel-title-row {
  margin-bottom: 0;
}

#builder-form .question-card label,
#builder-form .question-card .checkbox-row,
#builder-form .question-card input,
#builder-form .question-card textarea,
#builder-form .question-card select {
  min-width: 0;
  max-width: 100%;
}

#builder-form .question-card .checkbox-row {
  padding: 12px 14px;
  border-radius: 12px;
}

#builder-form .builder-actions,
#saved-surveys .builder-actions {
  flex-wrap: wrap;
  align-items: stretch;
}

#builder-form .builder-actions button,
#builder-form .builder-actions .button-link,
#saved-surveys .builder-actions button,
#saved-surveys .builder-actions .button-link {
  white-space: normal;
  text-align: center;
}

#builder-form > .builder-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.saved-item h3,
.response-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.saved-item a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  word-break: break-all;
}

.survey-nav-card {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.compact-title-row {
  align-items: flex-start;
  margin-bottom: 0;
}

.title-stack {
  display: grid;
  gap: 8px;
}

.title-stack p {
  margin: 0;
}

.title-stack strong {
  font-size: 1rem;
}

.small-button {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.account-dock {
  position: fixed;
  top: 92px;
  right: 22px;
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.account-trigger,
.account-panel {
  pointer-events: auto;
}

.account-trigger {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #0b66d8, #002b5f);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 42px rgba(0, 31, 63, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.account-trigger:hover,
.account-trigger:focus-visible,
.account-dock.open .account-trigger {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(0, 31, 63, 0.3);
  outline: none;
}

.account-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.account-icon-head,
.account-icon-body {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.account-icon-head {
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.account-icon-body {
  bottom: 2px;
  width: 20px;
  height: 11px;
  border-radius: 999px 999px 7px 7px;
}

.account-panel {
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 118px);
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 70px rgba(0, 31, 63, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 31, 63, 0.1);
}

.account-panel-head .eyebrow,
.account-panel-head h2,
.account-panel-head p {
  margin: 0;
}

.account-panel-head h2 {
  margin-top: 3px;
  font-size: 1.12rem;
}

.account-panel-head p:not(.eyebrow) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.account-section {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 31, 63, 0.09);
}

.account-section summary {
  cursor: pointer;
  color: #062a54;
  font-weight: 900;
  list-style-position: outside;
}

.account-section[open] summary {
  margin-bottom: 10px;
}

.account-section .stack-form {
  gap: 9px;
}

.account-section .form-message {
  margin-top: 8px;
  min-height: 18px;
  font-size: 0.82rem;
}

.account-section .helper-text {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.account-logout-button {
  width: 100%;
  margin-top: 12px;
}

.delivery-activity-card {
  gap: 12px;
}

.delivery-activity-card .compact-title-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.delivery-activity-card .small-button {
  align-self: flex-start;
}

.lifecycle-card,
.completed-survey-card {
  gap: 16px;
}

.survey-nav-card.active {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(217, 243, 238, 0.92);
}

.survey-nav-card:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.3);
}

.saved-meta,
.response-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.saved-meta span,
.response-meta span,
.answer-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.survey-actions {
  align-items: center;
  justify-content: space-between;
}

.survey-actions a,
.dashboard-download-button {
  word-break: normal;
}

.dashboard-download-button {
  color: var(--ink);
}

.progress-meter {
  display: grid;
  gap: 10px;
}

.progress-meter strong {
  font-size: 0.95rem;
}

.progress-meter-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 118, 110, 0.12);
}

.progress-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.answer-pill {
  border-radius: 14px;
  align-items: flex-start;
  color: var(--ink);
}

.analytics-card {
  gap: 14px;
}

.analytics-overview {
  gap: 22px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.overview-stat {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 36, 48, 0.06);
}

.overview-stat span,
.overview-stat small {
  color: var(--muted);
}

.overview-stat span {
  display: block;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.overview-stat strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 2rem;
}

.trend-panel {
  display: grid;
  gap: 16px;
}

.trend-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 14px;
  align-items: end;
}

.trend-bar-card {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.trend-bar-track {
  display: flex;
  align-items: end;
  width: 100%;
  min-height: 138px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(15, 118, 110, 0.08);
}

.trend-bar-fill {
  display: block;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--warm), var(--accent));
}

.trend-bar-card strong {
  font-size: 1rem;
}

.trend-bar-card span {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.insight-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(231, 245, 241, 0.9));
}

.status-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.analytics-visual-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.donut-wrap {
  display: grid;
  place-items: center;
}

.donut-chart {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  border-radius: 50%;
}

.donut-center {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(27, 36, 48, 0.06);
  text-align: center;
}

.donut-center strong {
  font-size: 1.5rem;
  line-height: 1;
}

.donut-center span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart-list {
  display: grid;
  gap: 12px;
}

.chart-row {
  display: grid;
  gap: 8px;
}

.chart-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.chart-label-row strong {
  font-size: 0.95rem;
}

.chart-label-row span {
  color: var(--accent-strong);
  font-weight: 800;
}

.chart-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 118, 110, 0.1);
}

.chart-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.recent-response-block {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.recent-response-block:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.form-message {
  margin: 12px 0 0;
  min-height: 24px;
  font-weight: 700;
}

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

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

.survey-page-shell {
  width: min(1220px, calc(100% - 28px));
}

.survey-site-header {
  background: rgba(8, 17, 25, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 54px rgba(3, 8, 12, 0.28);
}

body[data-page="survey"] .brand,
body[data-page="survey"] .brand small,
body[data-page="survey"] .survey-description,
body[data-page="survey"] .window-label,
body[data-page="survey"] .survey-shell-copy,
body[data-page="survey"] .survey-form-brief p,
body[data-page="survey"] .survey-brief-points p,
body[data-page="survey"] .survey-media-card figcaption {
  color: rgba(239, 245, 250, 0.78);
}

body[data-page="survey"] .brand strong,
body[data-page="survey"] .survey-form-brief h2,
body[data-page="survey"] .survey-shell h2,
body[data-page="survey"] .survey-brief-points strong,
body[data-page="survey"] .survey-hero-pills span {
  color: #f8fbff;
}

body[data-page="survey"] .brand-mark {
  background: linear-gradient(135deg, #2a8fd8, #0e4f82);
  box-shadow: 0 10px 24px rgba(18, 111, 179, 0.32);
}

.survey-main {
  display: grid;
  gap: 28px;
  padding-top: 34px;
}

.survey-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(7, 18, 27, 0.94), rgba(14, 33, 48, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.12);
}

.survey-hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% 45%;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 143, 216, 0.28), transparent 66%);
  pointer-events: none;
}

.survey-hero-copy,
.survey-media-layout,
.survey-form-brief,
.survey-form-shell {
  position: relative;
  z-index: 1;
}

.survey-logo-banner {
  display: inline-flex;
  align-items: center;
  width: min(100%, 520px);
  padding: 18px 22px;
  border-radius: 26px;
  background: rgba(255, 249, 241, 0.96);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
}

.survey-logo-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.survey-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 100%;
}

.survey-hero-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.96;
  color: #f8fbff;
}

.survey-hero-copy .survey-description {
  margin: 0;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.8;
}

.survey-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.survey-hero-pills span {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.survey-media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  grid-template-areas:
    "large detail"
    "large lifestyle";
  gap: 16px;
}

.survey-media-card {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 58px rgba(3, 8, 12, 0.22);
}

.survey-media-card-large {
  grid-area: large;
  min-height: 520px;
}

.survey-media-card-detail {
  grid-area: detail;
}

.survey-media-card-lifestyle {
  grid-area: lifestyle;
}

.survey-media-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.survey-media-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 15, 0.88));
  font-size: 0.9rem;
  line-height: 1.6;
}

.survey-form-stage {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 28px;
  align-items: start;
}

.survey-form-brief {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(11, 27, 39, 0.88), rgba(13, 33, 48, 0.84)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.12);
}

.survey-form-brief h2,
.survey-shell h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.survey-form-brief p {
  margin: 0;
  line-height: 1.8;
}

.survey-brief-points {
  display: grid;
  gap: 16px;
}

.survey-brief-points div {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.survey-brief-points strong {
  display: block;
  margin-bottom: 8px;
}

.survey-form-shell {
  padding: 28px;
  background: rgba(255, 251, 245, 0.96);
  border-color: rgba(255, 255, 255, 0.82);
}

.survey-shell-header {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.survey-shell-copy {
  margin: 0;
  line-height: 1.8;
}

body[data-page="survey"] .survey-shell,
body[data-page="survey"] .question-card,
body[data-page="survey"] .radio-option,
body[data-page="survey"] .checkbox-row {
  color: var(--ink);
}

body[data-page="survey"] .survey-shell .eyebrow {
  margin-bottom: 0;
}

body[data-page="survey"] .question-card,
body[data-page="survey"] .radio-option,
body[data-page="survey"] .checkbox-row {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(27, 36, 48, 0.08);
}

body[data-page="survey"] .question-card.has-error {
  border-color: rgba(180, 35, 24, 0.34);
  box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.12), var(--shadow);
}

body[data-page="survey"] .stack-form label,
body[data-page="survey"] .checkbox-row span,
body[data-page="survey"] .radio-option span,
body[data-page="survey"] .title-stack p,
body[data-page="survey"] .title-stack strong,
body[data-page="survey"] .survey-shell h2 {
  color: var(--ink);
}

body[data-page="survey"] .form-message.success {
  color: #0d5f58;
}

body[data-page="survey"] .field-error {
  color: #8f241b;
}

body[data-page="survey"] .checkbox-row.is-invalid,
body[data-page="survey"] .radio-option.is-invalid,
body[data-page="survey"] .field-error input,
body[data-page="survey"] .field-error textarea {
  border-color: rgba(180, 35, 24, 0.34);
  background: rgba(255, 244, 242, 0.96);
}

.other-detail-field {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.other-detail-field[hidden] {
  display: none;
}

#create-admin-form {
  margin-top: 4px;
}

.survey-description {
  margin-bottom: 28px;
}

.survey-question {
  display: grid;
  gap: 12px;
}

.survey-checkbox-group {
  gap: 12px;
}

.radio-group {
  display: grid;
  gap: 10px;
}

.radio-option {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.empty-state {
  color: var(--muted);
  padding: 18px 0;
}

@media (max-width: 1080px) {
  .site-header,
  .hero,
  .survey-hero-panel,
  .survey-form-stage,
  .workflow-section,
  .cta-section,
  .story-section,
  .feature-grid,
  .product-grid,
  .dashboard-top,
  .dashboard-panels,
  .trust-strip,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    border-radius: 28px;
  }

  .site-header,
  .site-nav,
  .header-actions,
  .hero-actions,
  .hero-stats,
  .builder-actions,
  .hero-badges,
  .slogan-ribbon,
  .logo-window,
  .window-grid {
    display: grid;
  }

  .hero-stats,
  .workflow-steps,
  .mini-grid,
  .overview-grid,
  .analytics-visual-row,
  .product-grid,
  .survey-media-layout {
    grid-template-columns: 1fr 1fr;
  }

  .product-card-featured,
  .product-card-wide {
    grid-column: span 2;
  }

  .contact-record-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-import-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-contact-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contact-row-meta,
  .contact-row-notes {
    grid-column: 1 / -1;
  }

  .launch-review-grid {
    grid-template-columns: 1fr;
  }

  .survey-media-layout {
    grid-template-areas:
      "large large"
      "detail lifestyle";
  }

  .survey-media-card-large {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 12px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-stats,
  .workflow-steps,
  .mini-grid,
  .overview-grid,
  .analytics-visual-row,
  .product-grid,
  .window-grid,
  .logo-window,
  .slogan-ribbon,
  .survey-media-layout {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 12px;
  }

  .contact-record-form {
    grid-template-columns: 1fr;
  }

  .contact-field-wide,
  .contact-type-field,
  .contact-notes-field {
    grid-column: auto;
  }

  .contact-directory-controls,
  .contact-import-form,
  .directory-contact-row {
    grid-template-columns: 1fr;
  }

  .contact-row-actions {
    justify-content: flex-start;
  }

  .launch-review-head {
    display: grid;
  }

  .header-actions,
  .hero-actions,
  .builder-actions,
  .hero-badges {
    grid-template-columns: 1fr;
  }

  .status-head,
  .survey-actions,
  .compact-title-row {
    display: grid;
  }

  .logo-orb {
    width: min(100%, 220px);
    margin: 0 auto;
  }

  .survey-page-shell {
    width: min(100% - 18px, 1220px);
  }

  .survey-main {
    gap: 20px;
    padding-top: 22px;
  }

  .survey-hero-panel,
  .survey-form-shell,
  .survey-form-brief {
    padding: 20px;
  }

  .survey-media-layout {
    grid-template-areas:
      "large"
      "detail"
      "lifestyle";
  }

  .survey-media-card-large,
  .survey-media-card {
    min-height: 220px;
  }

  .survey-logo-banner {
    padding: 14px 16px;
  }
}

/* Admin workspace density pass */
body:not([data-page="survey"]):not([data-page="home"]) {
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --ink: #0b1f34;
  --muted: #536478;
  --line: rgba(0, 31, 63, 0.12);
  --accent: #0056b3;
  --accent-strong: #001f3f;
  --accent-soft: #e8f1fb;
  --warm: #c0c0c0;
  --shadow: 0 12px 34px rgba(0, 31, 63, 0.09);
  background:
    linear-gradient(90deg, rgba(0, 86, 179, 0.13) 0, rgba(0, 86, 179, 0.13) 6px, transparent 6px),
    linear-gradient(135deg, rgba(0, 31, 63, 0.06) 0%, transparent 34%),
    linear-gradient(180deg, #f7f9fc 0%, #edf2f7 48%, #f6f8fb 100%);
}

body:not([data-page="survey"]):not([data-page="home"])::before {
  opacity: 1;
  z-index: 0;
  background-image:
    url("/assets/winthrop-mark.png"),
    linear-gradient(rgba(0, 31, 63, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 31, 63, 0.045) 1px, transparent 1px);
  background-position:
    right -120px top 126px,
    0 0,
    0 0;
  background-repeat:
    no-repeat,
    repeat,
    repeat;
  background-size:
    420px auto,
    56px 56px,
    56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
}

body:not([data-page="survey"]):not([data-page="home"])::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  z-index: 0;
  height: 42vh;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(0, 31, 63, 0.055)),
    repeating-linear-gradient(
      135deg,
      rgba(0, 86, 179, 0.055) 0,
      rgba(0, 86, 179, 0.055) 1px,
      transparent 1px,
      transparent 18px
    );
}

body:not([data-page="survey"]):not([data-page="home"]) .page-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 28px));
  padding: 16px 0 34px;
}

body:not([data-page="survey"]):not([data-page="home"]) .site-header {
  top: 10px;
  gap: 18px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 31, 63, 0.12);
  box-shadow: 0 10px 30px rgba(0, 31, 63, 0.08);
}

body:not([data-page="survey"]):not([data-page="home"]) .brand {
  gap: 10px;
}

body:not([data-page="survey"]):not([data-page="home"]) .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0056b3, #001f3f);
}

body:not([data-page="survey"]):not([data-page="home"]) .brand strong {
  font-size: 0.95rem;
}

body:not([data-page="survey"]):not([data-page="home"]) .brand small,
body:not([data-page="survey"]):not([data-page="home"]) .site-nav a {
  font-size: 0.82rem;
}

body:not([data-page="survey"]):not([data-page="home"]) .site-nav,
body:not([data-page="survey"]):not([data-page="home"]) .header-actions,
body:not([data-page="survey"]):not([data-page="home"]) .builder-actions {
  gap: 8px;
}

body:not([data-page="survey"]):not([data-page="home"]) .app-main {
  padding-top: 26px;
}

body:not([data-page="survey"]):not([data-page="home"]) .page-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: 14px 24px;
  align-items: end;
  margin-bottom: 18px;
  padding: 0 0 16px 14px;
  border-left: 4px solid rgba(0, 86, 179, 0.74);
  border-bottom: 1px solid rgba(0, 31, 63, 0.08);
}

body:not([data-page="survey"]):not([data-page="home"]) .page-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

body:not([data-page="survey"]):not([data-page="home"]) .page-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.02;
}

body:not([data-page="survey"]):not([data-page="home"]) .page-intro p {
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.55;
}

body:not([data-page="survey"]):not([data-page="home"]) .app-grid,
body:not([data-page="survey"]):not([data-page="home"]) .dashboard-panels,
body:not([data-page="survey"]):not([data-page="home"]) .dashboard-top {
  gap: 16px;
}

body:not([data-page="survey"]):not([data-page="home"]) .app-grid {
  grid-template-columns: minmax(420px, 0.92fr) minmax(360px, 1.08fr);
}

body:not([data-page="survey"]):not([data-page="home"]) .outreach-grid,
body:not([data-page="survey"]):not([data-page="home"]) .dashboard-panels {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body:not([data-page="survey"]):not([data-page="home"]) .builder-panel,
body:not([data-page="survey"]):not([data-page="home"]) .data-panel,
body:not([data-page="survey"]):not([data-page="home"]) .saved-item,
body:not([data-page="survey"]):not([data-page="home"]) .question-card,
body:not([data-page="survey"]):not([data-page="home"]) .response-card,
body:not([data-page="survey"]):not([data-page="home"]) .metric-card {
  border-radius: 14px;
  border-color: rgba(27, 36, 48, 0.08);
  box-shadow: var(--shadow);
}

body:not([data-page="survey"]):not([data-page="home"]) .builder-panel,
body:not([data-page="survey"]):not([data-page="home"]) .data-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.82));
}

body:not([data-page="survey"]):not([data-page="home"]) .saved-item,
body:not([data-page="survey"]):not([data-page="home"]) .question-card,
body:not([data-page="survey"]):not([data-page="home"]) .response-card,
body:not([data-page="survey"]):not([data-page="home"]) .metric-card {
  background: rgba(255, 255, 255, 0.88);
}

body:not([data-page="survey"]):not([data-page="home"]) .builder-panel,
body:not([data-page="survey"]):not([data-page="home"]) .data-panel {
  padding: 18px;
}

body:not([data-page="survey"]):not([data-page="home"]) .saved-item,
body:not([data-page="survey"]):not([data-page="home"]) .question-card,
body:not([data-page="survey"]):not([data-page="home"]) .response-card,
body:not([data-page="survey"]):not([data-page="home"]) .metric-card {
  padding: 14px;
}

body:not([data-page="survey"]):not([data-page="home"]) .panel-title-row {
  gap: 10px;
  margin-bottom: 12px;
}

body:not([data-page="survey"]):not([data-page="home"]) .builder-panel h2,
body:not([data-page="survey"]):not([data-page="home"]) .data-panel h2,
body:not([data-page="survey"]):not([data-page="home"]) .saved-item h3 {
  margin: 0;
  line-height: 1.12;
}

body:not([data-page="survey"]):not([data-page="home"]) .builder-panel h2,
body:not([data-page="survey"]):not([data-page="home"]) .data-panel h2 {
  font-size: 1.22rem;
}

body:not([data-page="survey"]):not([data-page="home"]) .saved-list,
body:not([data-page="survey"]):not([data-page="home"]) .question-list,
body:not([data-page="survey"]):not([data-page="home"]) .stack-form,
body:not([data-page="survey"]):not([data-page="home"]) .saved-item,
body:not([data-page="survey"]):not([data-page="home"]) .question-card {
  gap: 10px;
}

body:not([data-page="survey"]):not([data-page="home"]) .stack-form label,
body:not([data-page="survey"]):not([data-page="home"]) .interest-card label {
  gap: 6px;
  font-size: 0.9rem;
}

body:not([data-page="survey"]):not([data-page="home"]) .stack-form input,
body:not([data-page="survey"]):not([data-page="home"]) .stack-form textarea,
body:not([data-page="survey"]):not([data-page="home"]) .stack-form select {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}

body:not([data-page="survey"]):not([data-page="home"]) .stack-form textarea {
  min-height: 78px;
}

body:not([data-page="survey"]):not([data-page="home"]) .checkbox-row,
body:not([data-page="survey"]):not([data-page="home"]) .radio-option {
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
}

body:not([data-page="survey"]):not([data-page="home"]) .checkbox-row span {
  line-height: 1.35;
}

body:not([data-page="survey"]):not([data-page="home"]) .primary-button,
body:not([data-page="survey"]):not([data-page="home"]) .secondary-button,
body:not([data-page="survey"]):not([data-page="home"]) .ghost-button,
body:not([data-page="survey"]):not([data-page="home"]) .button-link {
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

body:not([data-page="survey"]):not([data-page="home"]) .small-button {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}

body:not([data-page="survey"]):not([data-page="home"]) .saved-meta {
  gap: 6px;
}

body:not([data-page="survey"]):not([data-page="home"]) .saved-meta span,
body:not([data-page="survey"]):not([data-page="home"]) .contact-type-pill {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
}

body:not([data-page="survey"]):not([data-page="home"]) .helper-text,
body:not([data-page="survey"]):not([data-page="home"]) .form-message,
body:not([data-page="survey"]):not([data-page="home"]) .empty-state,
body:not([data-page="survey"]):not([data-page="home"]) .saved-item p {
  font-size: 0.86rem;
  line-height: 1.45;
}

body:not([data-page="survey"]):not([data-page="home"]) .metric-card strong {
  margin: 8px 0 4px;
  font-size: 1.7rem;
}

body:not([data-page="survey"]):not([data-page="home"]) .dashboard-top {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 14px;
}

body:not([data-page="survey"]):not([data-page="home"]) .contact-type-panel,
body:not([data-page="survey"]):not([data-page="home"]) .contact-import-panel,
body:not([data-page="survey"]):not([data-page="home"]) .contact-record-panel,
body:not([data-page="survey"]):not([data-page="home"]) .recipient-directory-panel {
  grid-column: auto;
}

body:not([data-page="survey"]):not([data-page="home"]) .contact-record-panel,
body:not([data-page="survey"]):not([data-page="home"]) .recipient-directory-panel {
  grid-column: 1 / -1;
}

body:not([data-page="survey"]):not([data-page="home"]) .contact-record-form {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

body:not([data-page="survey"]):not([data-page="home"]) .contact-field-wide,
body:not([data-page="survey"]):not([data-page="home"]) .contact-type-field,
body:not([data-page="survey"]):not([data-page="home"]) .contact-notes-field {
  grid-column: span 2;
}

body:not([data-page="survey"]):not([data-page="home"]) .contact-record-form .category-option-list {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

body:not([data-page="survey"]):not([data-page="home"]) .contact-consent-row {
  min-height: 0;
}

body:not([data-page="survey"]):not([data-page="home"]) .contact-import-form {
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) minmax(160px, 220px);
}

body:not([data-page="survey"]):not([data-page="home"]) .contact-directory-controls {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px);
}

body:not([data-page="survey"]):not([data-page="home"]) .customer-list {
  max-height: min(76vh, 820px);
}

body:not([data-page="survey"]):not([data-page="home"]) .directory-contact-row,
body:not([data-page="survey"]):not([data-page="home"]) .customer-card {
  padding: 10px 12px;
  border-radius: 12px;
}

body:not([data-page="survey"]):not([data-page="home"]) .launch-review-panel {
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
}

body:not([data-page="survey"]):not([data-page="home"]) .recipient-preview-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  max-height: 420px;
}

body:not([data-page="survey"]):not([data-page="home"]) .recipient-preview-item {
  padding: 7px 9px;
  border-radius: 8px;
}

body:not([data-page="survey"]):not([data-page="home"]) .campaign-meta {
  min-height: 0;
}

body:not([data-page="survey"]):not([data-page="home"]) #builder-form > .builder-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

body:not([data-page="survey"]):not([data-page="home"]) #saved-surveys .compact-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not([data-page="survey"]):not([data-page="home"]) .single-panel-row {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1080px) {
  body:not([data-page="survey"]):not([data-page="home"]) .page-intro,
  body:not([data-page="survey"]):not([data-page="home"]) .app-grid,
  body:not([data-page="survey"]):not([data-page="home"]) .outreach-grid,
  body:not([data-page="survey"]):not([data-page="home"]) .dashboard-panels {
    grid-template-columns: 1fr;
  }

  body:not([data-page="survey"]):not([data-page="home"]) .contact-record-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body:not([data-page="survey"]):not([data-page="home"]) .page-shell {
    width: min(100% - 18px, 1440px);
    padding-top: 10px;
  }

  body:not([data-page="survey"]):not([data-page="home"]) .site-header,
  body:not([data-page="survey"]):not([data-page="home"]) .site-nav,
  body:not([data-page="survey"]):not([data-page="home"]) .header-actions {
    display: grid;
    width: 100%;
  }

  body:not([data-page="survey"]):not([data-page="home"]) .page-intro h1 {
    font-size: 1.85rem;
  }

  body:not([data-page="survey"]):not([data-page="home"]) .builder-panel,
  body:not([data-page="survey"]):not([data-page="home"]) .data-panel {
    padding: 14px;
  }

  body:not([data-page="survey"]):not([data-page="home"]) .contact-record-form,
  body:not([data-page="survey"]):not([data-page="home"]) .contact-import-form,
  body:not([data-page="survey"]):not([data-page="home"]) .contact-directory-controls,
  body:not([data-page="survey"]):not([data-page="home"]) #saved-surveys .compact-card-actions {
    grid-template-columns: 1fr;
  }

  body:not([data-page="survey"]):not([data-page="home"]) .contact-field-wide,
  body:not([data-page="survey"]):not([data-page="home"]) .contact-type-field,
  body:not([data-page="survey"]):not([data-page="home"]) .contact-notes-field {
    grid-column: auto;
  }

  .account-dock {
    top: auto;
    right: 14px;
    bottom: 14px;
  }

  .account-panel {
    order: -1;
    width: min(360px, calc(100vw - 28px));
    max-height: calc(100vh - 92px);
  }

  .account-trigger {
    width: 48px;
    height: 48px;
  }
}

/* Winthrop survey brand standards */
body[data-page="survey"] {
  --survey-blue: #0056B3;
  --survey-navy: #001F3F;
  --survey-silver: #C0C0C0;
  --survey-ink: #071522;
  --survey-muted: #4E5F73;
  --survey-line: #D8DEE8;
  --survey-panel: #FFFFFF;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--survey-ink);
  background:
    linear-gradient(90deg, rgba(0, 86, 179, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #FFFFFF 0%, #F6F8FB 48%, #FFFFFF 100%);
  background-size: 80px 80px, auto;
}

body[data-page="survey"]::before {
  display: none;
}

body[data-page="survey"] .page-shell {
  width: min(1240px, calc(100% - 32px));
}

.survey-site-header {
  position: static;
  padding: 14px 0 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--survey-line);
  border-radius: 0;
  box-shadow: none;
}

.survey-site-header .brand {
  gap: 18px;
}

.survey-brand-logo {
  display: block;
  width: 210px;
  max-width: 52vw;
  height: auto;
}

body[data-page="survey"] .brand strong,
body[data-page="survey"] .brand small {
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--survey-navy);
}

body[data-page="survey"] .brand strong {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-page="survey"] .brand small {
  color: var(--survey-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.survey-main {
  gap: 32px;
  padding-top: 28px;
}

.survey-hero-panel {
  position: relative;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 30px;
  padding: 32px;
  overflow: hidden;
  color: #FFFFFF;
  background: var(--survey-navy);
  border: 1px solid rgba(0, 31, 63, 0.92);
  border-radius: 8px;
  box-shadow: 0 24px 52px rgba(0, 31, 63, 0.18);
}

.survey-hero-panel::before {
  display: none;
}

.survey-hero-panel::after {
  content: "";
  position: absolute;
  right: -7%;
  bottom: -26%;
  width: 48%;
  aspect-ratio: 1;
  background: url("/assets/winthrop-mark.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.survey-logo-banner {
  width: min(100%, 440px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.survey-logo-banner img {
  filter: none;
}

.survey-hero-copy {
  align-content: center;
  gap: 20px;
}

body[data-page="survey"] .eyebrow {
  color: var(--survey-blue);
  letter-spacing: 0.14em;
}

.survey-hero-copy .eyebrow {
  color: var(--survey-silver);
}

.survey-hero-copy h1,
.survey-hero-copy h2 {
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: #FFFFFF;
}

.survey-hero-copy .survey-description {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.7;
}

.survey-hero-pills {
  gap: 10px;
}

.survey-hero-pills span {
  padding: 9px 12px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(192, 192, 192, 0.32);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.survey-media-layout {
  grid-template-columns: 1.35fr 0.72fr;
  gap: 12px;
}

.survey-media-card {
  min-height: 190px;
  border-radius: 8px;
  border: 1px solid rgba(192, 192, 192, 0.35);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.survey-media-card-large {
  min-height: 420px;
}

.survey-media-card img {
  filter: saturate(0.92) contrast(1.04);
}

.survey-media-card figcaption {
  padding: 16px;
  color: #FFFFFF;
  background: linear-gradient(180deg, transparent, rgba(0, 31, 63, 0.92));
  font-size: 0.86rem;
  line-height: 1.5;
}

.survey-form-stage {
  grid-template-columns: minmax(0, 0.64fr) minmax(280px, 0.36fr);
  gap: 28px;
}

.survey-form-brief,
.survey-form-shell {
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 31, 63, 0.1);
}

.survey-form-brief {
  gap: 18px;
  padding: 28px;
  color: #FFFFFF;
  background: linear-gradient(180deg, var(--survey-navy), #062B55);
  border: 1px solid rgba(0, 31, 63, 0.86);
}

body[data-page="survey"] .window-label {
  padding: 0;
  color: var(--survey-silver);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.survey-form-brief h2,
.survey-shell h1,
.survey-shell h2 {
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.14;
}

body[data-page="survey"] .survey-form-brief h2,
body[data-page="survey"] .survey-brief-points strong {
  color: #FFFFFF;
}

body[data-page="survey"] .survey-form-brief p,
body[data-page="survey"] .survey-brief-points p {
  color: rgba(255, 255, 255, 0.78);
}

.survey-brief-points {
  gap: 12px;
}

.survey-brief-points div {
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid rgba(192, 192, 192, 0.28);
  border-radius: 0;
  background: transparent;
}

.survey-form-shell {
  padding: 30px;
  background: var(--survey-panel);
  border: 1px solid var(--survey-line);
}

body[data-page="survey"] .survey-shell h2,
body[data-page="survey"] .survey-shell h1,
body[data-page="survey"] .survey-shell-copy {
  color: var(--survey-navy);
}

body[data-page="survey"] .survey-shell h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

body[data-page="survey"] .survey-shell-copy {
  color: var(--survey-muted);
}

body[data-page="survey"] .question-card {
  padding: 20px;
  border-radius: 8px;
  border-color: var(--survey-line);
  background: #FFFFFF;
  box-shadow: none;
}

.survey-question-heading {
  display: grid;
  gap: 6px;
}

.survey-question-heading strong {
  color: var(--survey-navy);
  font-size: 1.06rem;
  line-height: 1.28;
}

.survey-question-heading p {
  margin: 0;
  color: var(--survey-muted);
  font-size: 0.9rem;
}

body[data-page="survey"] .radio-option,
body[data-page="survey"] .checkbox-row {
  border-radius: 6px;
  border-color: var(--survey-line);
  background: #F8FAFD;
}

.usage-input-list {
  display: grid;
  gap: 10px;
}

.usage-placeholder {
  margin: 0;
  padding: 14px 16px;
  color: var(--survey-muted);
  border: 1px solid var(--survey-line);
  border-radius: 6px;
  background: #F8FAFD;
}

.usage-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--survey-line);
  border-radius: 6px;
  background: #F8FAFD;
}

.usage-row[hidden] {
  display: none;
}

.usage-row span {
  color: var(--survey-navy);
  font-weight: 800;
}

.usage-row.is-invalid {
  border-color: rgba(180, 35, 24, 0.34);
  background: rgba(255, 244, 242, 0.96);
}

body[data-page="survey"] .radio-option:has(input:checked),
body[data-page="survey"] .checkbox-row:has(input:checked) {
  border-color: rgba(0, 86, 179, 0.48);
  background: rgba(0, 86, 179, 0.08);
}

body[data-page="survey"] .stack-form input,
body[data-page="survey"] .stack-form textarea,
body[data-page="survey"] .stack-form select {
  border-radius: 6px;
  border-color: var(--survey-line);
  background: #FFFFFF;
}

body[data-page="survey"] .stack-form input:focus,
body[data-page="survey"] .stack-form textarea:focus,
body[data-page="survey"] .stack-form select:focus {
  outline: 3px solid rgba(0, 86, 179, 0.16);
  border-color: var(--survey-blue);
}

body[data-page="survey"] .primary-button {
  width: fit-content;
  min-width: 180px;
  border-radius: 6px;
  color: #FFFFFF;
  background: var(--survey-blue);
  box-shadow: 0 14px 24px rgba(0, 86, 179, 0.22);
}

body[data-page="survey"] .primary-button:hover {
  background: #004792;
}

body[data-page="survey"] .form-message.success {
  color: var(--survey-blue);
}

body[data-page="survey"] .question-card.has-error {
  border-color: rgba(180, 35, 24, 0.46);
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.08);
}

@media (max-width: 1080px) {
  .survey-hero-panel,
  .survey-form-stage {
    grid-template-columns: 1fr;
  }

  .survey-media-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "large large"
      "detail lifestyle";
  }

  .survey-media-card-large {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  body[data-page="survey"] .page-shell {
    width: min(100% - 20px, 1240px);
  }

  .survey-site-header .brand {
    align-items: flex-start;
  }

  .survey-brand-logo {
    width: 180px;
  }

  .survey-hero-panel,
  .survey-form-brief,
  .survey-form-shell {
    padding: 20px;
  }

  .survey-hero-copy h1,
  .survey-hero-copy h2 {
    font-size: 2.25rem;
  }

  .survey-media-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "large"
      "detail"
      "lifestyle";
  }

  .survey-media-card,
  .survey-media-card-large {
    min-height: 220px;
  }

  .survey-form-brief h2,
  .survey-shell h1,
  .survey-shell h2 {
    font-size: 1.45rem;
  }

  .usage-row {
    grid-template-columns: 1fr;
  }
}

body[data-page="home"] {
  min-height: 100vh;
  color: #07182c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 86, 179, 0.1)),
    url("/assets/winthrop-sky-background.png") center top / cover no-repeat fixed;
  overflow-x: hidden;
}

body[data-page="home"]::before {
  display: none;
}

.home-brand-page {
  min-height: 100vh;
  padding: 0;
  background: transparent;
}

.home-top-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.home-logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.home-top-logo {
  display: block;
  width: min(390px, 52vw);
  height: auto;
}

.home-tabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(0, 31, 63, 0.08);
}

.home-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  color: #001f3f;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-tabs a:hover,
.home-tabs a:focus-visible {
  color: #ffffff;
  background: #0056b3;
  transform: translateY(-1px);
}

.home-poster-stage {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 116px);
  margin: 0 auto;
  background: transparent;
}

.home-poster-card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 116px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.home-poster-card img {
  display: block;
  width: min(100%, 1024px);
  height: auto;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 560px) {
  body[data-page="home"] {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 86, 179, 0.08)),
      url("/assets/winthrop-sky-background.png") center top / cover no-repeat;
  }

  .home-top-section {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(100% - 20px, 1180px);
    padding: 16px 0;
  }

  .home-top-logo {
    width: min(360px, 88vw);
  }

  .home-tabs {
    display: grid;
    width: 100%;
    border-radius: 18px;
  }

  .home-tabs a {
    width: 100%;
  }
}
