:root {
  --bg: #f3f5ff;
  --bg-soft: #e4e8fb;
  --panel: #ffffff;
  --ink: #1d2654;
  --muted: #5a668e;
  --line: #d7ddf5;
  --primary: #1D4ED8;
  --accent: var(--primary);
  --accent-soft: color-mix(in srgb, var(--primary) 12%, #ffffff);
  --shadow: rgba(29, 38, 84, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 14%, transparent), transparent 28%),
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 10%, transparent), transparent 24%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--primary) 3%, #ffffff) 0%,
      color-mix(in srgb, var(--primary) 9%, #ffffff) 100%
    );
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero,
.layout-section {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px var(--shadow);
}

.hero {
  padding: 36px 30px 28px;
  margin-bottom: 18px;
}

.survey-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.survey-logo {
  display: block;
  width: 132px;
  height: auto;
  margin: 0;
}

.survey-app-shell {
  width: min(460px, calc(100% - 20px));
  min-height: calc(100dvh - 20px);
  padding: 0;
  margin: 10px auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, rgba(29, 38, 84, 0.08));
  border-radius: 28px;
  background: color-mix(in srgb, var(--primary) 5%, #ffffff);
  box-shadow: 0 22px 54px color-mix(in srgb, var(--primary) 16%, transparent);
  overflow: hidden;
}

.survey-app-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 10%, rgba(29, 38, 84, 0.08));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  flex-shrink: 0;
}

.survey-app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.survey-app-copy { min-width: 0; }

.survey-app-copy h1 {
  margin: 0;
  max-width: none;
  font-family: inherit;
  font-size: 1.08rem;
  letter-spacing: 0;
  line-height: 1.15;
}

.survey-app-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.survey-app-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, #ffffff);
  background: color-mix(in srgb, var(--primary) 9%, #ffffff);
  color: var(--accent);
  text-decoration: none;
  flex: 0 0 auto;
}

.survey-app-back svg {
  width: 20px;
  height: 20px;
}

.survey-app-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, #ffffff), color-mix(in srgb, var(--primary) 20%, #ffffff));
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, #ffffff);
}

.survey-section-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: auto;
  gap: 6px;
  margin: 0;
  padding: 12px 14px 10px;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--primary) 5%, rgba(255, 255, 255, 0.96));
  overflow: visible;
  scrollbar-width: none;
  backdrop-filter: blur(14px);
}

.survey-section-tabs .subhead-tab {
  min-height: 36px;
  padding: 0 9px;
  border-radius: 12px;
  font-size: 0.74rem;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

.survey-section-tabs .subhead-tab:last-child {
  grid-column: 1 / -1;
}

.survey-section-tabs::-webkit-scrollbar {
  display: none;
}

.survey-section[id] {
  scroll-margin-top: 20px;
}

.survey-section {
  position: relative;
}

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

.survey-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.survey-feature-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  background: color-mix(in srgb, var(--primary) 5%, #ffffff);
}

.survey-status-bar {
  height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.survey-status-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.survey-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.survey-status-dot,
.survey-status-signal,
.survey-status-battery {
  display: block;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.8;
}

.survey-status-dot {
  width: 4px;
  height: 4px;
}

.survey-status-signal {
  width: 16px;
  height: 8px;
  box-shadow: 6px 0 0 0 var(--text), 12px 0 0 0 var(--text);
  background: transparent;
  opacity: 0.55;
}

.survey-status-battery {
  width: 18px;
  height: 10px;
  border: 1.5px solid var(--text);
  background: transparent;
  position: relative;
}

.survey-status-battery::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -3px;
  width: 2px;
  height: 4px;
  border-radius: 999px;
  background: var(--text);
  transform: translateY(-50%);
}

.survey-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.subhead-tabs {
  /* flex + fit-content = shrink-wrapped like inline-flex, but each nav row
     stays on its own line (needed now that parent/child tab rows stack) */
  display: flex;
  width: fit-content;
  gap: 10px;
  padding: 6px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(239, 245, 255, 0.9);
}

.subhead-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.subhead-tab.active,
.subhead-tab[aria-current="true"] {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 70%, #ffffff), var(--primary));
  color: #ffffff;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 18%, transparent);
}

.survey-section-tabs.subhead-tabs {
  width: auto;
  margin: 0;
  padding: 12px 14px 10px;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--primary) 7%, rgba(255, 255, 255, 0.96));
}

.survey-section-tabs .subhead-tab {
  color: color-mix(in srgb, var(--primary) 38%, var(--muted));
  background: color-mix(in srgb, var(--primary) 5%, #ffffff);
}

.survey-section-tabs .subhead-tab.active,
.survey-section-tabs .subhead-tab[aria-current="true"] {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 70%, #ffffff), var(--primary));
  color: #ffffff;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 20%, transparent);
}

.survey-section-tabs .subhead-tab.disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* Child tabs: section nav (MVPs / Surveys) shown under the audience tabs */
.subhead-tabs-child {
  padding: 4px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.75);
}

.subhead-tabs + .subhead-tabs-child {
  margin-top: -8px;
}

.subhead-tabs-child .subhead-tab {
  min-height: 34px;
  padding: 0 16px;
  font-size: 0.85rem;
}

.layout-section {
  display: block;
  padding: 30px;
  margin-bottom: 24px;
}

.layout-section.host-mvp1-layout {
  display: block;
}

.mvp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.mvp-thumbnail-card {
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: center;
  min-height: 148px;
  padding: 22px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, rgba(29, 38, 84, 0.08));
  border-radius: 18px;
  background: color-mix(in srgb, var(--primary) 4%, #ffffff);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 10%, transparent);
  text-align: center;
}

.mvp-thumbnail-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1;
}

.mvp-card-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.survey-feature-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.survey-section {
  padding: 16px;
  margin-bottom: 0;
  border: 1px solid color-mix(in srgb, var(--primary) 10%, rgba(29, 38, 84, 0.08));
  border-radius: 18px;
  background: color-mix(in srgb, var(--primary) 3%, #ffffff);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 10%, transparent);
}

.survey-header {
  max-width: 74ch;
  margin-bottom: 12px;
}

.survey-header .eyebrow {
  margin-bottom: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.survey-header h2 {
  margin-bottom: 0;
  max-width: none;
  font-family: inherit;
  font-size: 1.02rem;
  line-height: 1.2;
}

.survey-header .copy {
  display: none;
}

.survey-save-header {
  max-width: none;
}

.survey-save-title-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.survey-save-title-row .eyebrow {
  margin-bottom: 0;
}

.survey-save-action-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.survey-save-note {
  max-width: 34ch;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 88%, #5f6f93);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.survey-save-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--primary) 16%, transparent);
}

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

.survey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.survey-agreement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, #ffffff);
  border-radius: 18px;
  background: color-mix(in srgb, var(--primary) 5%, #ffffff);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.survey-agreement input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.survey-step-controls {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(90px, auto) 1fr minmax(90px, auto);
  gap: 12px;
  align-items: center;
  padding: 14px 24px 18px;
  border-top: 1px solid color-mix(in srgb, var(--primary) 12%, #ffffff);
  background: color-mix(in srgb, var(--primary) 4%, rgba(255, 255, 255, 0.94));
  backdrop-filter: blur(16px);
}

.survey-step-indicator {
  justify-self: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.survey-step-indicator[data-state="error"] {
  color: #bf3a3a;
}

.survey-step-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.survey-status {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.survey-status[data-state="success"] {
  color: var(--primary);
}

.survey-status[data-state="error"] {
  color: #bf3a3a;
}

.survey-grid,
.survey-stack,
.sus-list,
.theme-option-grid {
  display: grid;
  gap: 16px;
}

.survey-grid {
  grid-template-columns: 1fr;
}

.priority-ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  clear: both;
  margin-top: 10px;
}

.priority-ranking-card {
  display: block;
  border-color: color-mix(in srgb, var(--primary) 18%, rgba(29, 38, 84, 0.08));
  background: color-mix(in srgb, var(--primary) 4%, #ffffff);
}

.services-ranking-card {
  background: color-mix(in srgb, var(--primary) 4%, #ffffff);
}

.mvp-ranking-card {
  background: color-mix(in srgb, var(--primary) 4%, #ffffff);
}

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

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

.priority-ranking-help {
  clear: both;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 72%, #6b7694);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.priority-rank-card {
  position: relative;
  display: grid;
  min-height: 78px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 32px 10px 12px;
  border: 1.5px solid color-mix(in srgb, var(--primary) 18%, #dbe5f3);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--primary) 3%, #ffffff));
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 6px 14px rgba(15, 23, 42, 0.04);
}

.priority-rank-card:hover {
  border-color: color-mix(in srgb, var(--primary) 34%, #ffffff);
  box-shadow: 0 10px 18px color-mix(in srgb, var(--primary) 9%, transparent);
}

.priority-rank-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
  outline-offset: 3px;
}

.priority-rank-card:active {
  transform: scale(0.99);
}

.priority-rank-card.active {
  border-color: color-mix(in srgb, var(--primary) 48%, #ffffff);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 10%, #ffffff), color-mix(in srgb, var(--primary) 5%, #ffffff));
  box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 12%, transparent);
}

.priority-rank-badge {
  position: absolute;
  top: 9px;
  left: 50%;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 16%, #ffffff);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.priority-rank-card.active .priority-rank-badge {
  background: var(--primary);
  color: #ffffff;
}

.priority-rank-label {
  color: color-mix(in srgb, var(--ink) 90%, #52627f);
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1.6;
}

.service-rank-card {
  min-height: 96px;
  padding-top: 30px;
}

.service-rank-desc {
  display: block;
  color: color-mix(in srgb, var(--ink) 58%, #7a8499);
  font-size: 0.72rem;
  font-weight: 540;
  line-height: 1.25;
}

.survey-field,
.survey-card {
  border: 1px solid color-mix(in srgb, var(--primary) 10%, rgba(29, 38, 84, 0.08));
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary) 5%, #ffffff);
}

.survey-required-missing {
  border-color: color-mix(in srgb, #bf3a3a 58%, #ffffff);
  box-shadow: 0 0 0 2px color-mix(in srgb, #bf3a3a 10%, transparent);
}

.survey-field {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.survey-field span {
  font-weight: 650;
  color: color-mix(in srgb, var(--ink) 88%, #5f6f93);
  font-size: 0.88rem;
  line-height: 1.45;
}

.survey-field input,
.survey-field select,
.survey-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 13%, #dbe5f3);
  border-radius: 13px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

.survey-field textarea.survey-answer-roomy {
  min-height: 132px;
}

.survey-field textarea.survey-answer-large {
  min-height: 156px;
}

.survey-field input[readonly],
.survey-field textarea[readonly],
.survey-field select:disabled {
  background: color-mix(in srgb, var(--primary) 6%, #ffffff);
  color: #54618a;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent);
}

.survey-field input[readonly]::placeholder,
.survey-field textarea[readonly]::placeholder {
  color: #8c97b8;
}

.survey-field select:disabled {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
}

.survey-field select:disabled + * {
  pointer-events: none;
}

.survey-field [data-locked="true"] {
  pointer-events: none;
}

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

.survey-card {
  padding: 16px 14px;
  min-width: 0;
}

.survey-card legend {
  float: left;
  width: 100%;
  max-width: 100%;
  padding: 0 8px 0 0;
  margin-bottom: 12px;
  font-weight: 620;
  color: color-mix(in srgb, var(--ink) 90%, #52627f);
  font-size: 0.94rem;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
}

.survey-card legend + * {
  clear: both;
}

.theme-option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.theme-option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 13%, #dbe5f3);
  border-radius: 18px;
  background: color-mix(in srgb, var(--primary) 2%, #ffffff);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.theme-option-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 28%, #ffffff);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 10%, transparent);
}

.theme-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-option-card:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, #ffffff);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 12%, transparent);
}

.theme-option-swatch {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: 58px;
  min-width: 58px;
  height: 34px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 13%, #dbe5f3);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.theme-option-swatch span {
  display: block;
  height: 100%;
}

.theme-option-swatch-other {
  grid-auto-columns: 58px;
}

.theme-option-text {
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
}

.nps-scale,
.likert-row,
.sus-key,
.nps-labels {
  display: grid;
}

.nps-scale {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  align-items: stretch;
}

.likert-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  align-items: stretch;
}

.nps-scale label,
.likert-row label {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: center;
  min-width: 0;
  min-height: 68px;
  padding: 12px 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 13%, #dbe5f3);
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary) 2%, #ffffff);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.25;
}

.nps-scale input,
.likert-row input {
  accent-color: var(--primary);
}

.nps-labels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nps-labels span:last-child {
  text-align: right;
}

.sus-key {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.alt-layout {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.96));
}

.host-mvp2-layout,
.host-mvp3-layout {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 246, 255, 0.95));
}

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

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

h1,
h2,
.listing-title,
.dashboard-number {
  font-family: "Georgia", "Times New Roman", serif;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.95;
  max-width: 11ch;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.02;
}

.copy {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

.demo-button,
.secondary-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 72%, #ffffff), var(--primary));
  color: #ffffff;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 20%, transparent);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  border: 1px solid var(--line);
  box-shadow: none;
}

.danger-button {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(255, 247, 245, 0.94);
}

.danger-button:hover {
  border-color: rgba(180, 35, 24, 0.34);
  box-shadow: 0 10px 20px rgba(180, 35, 24, 0.08);
}

.disabled-button {
  background: rgba(233, 239, 255, 0.88);
  color: var(--accent);
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.disabled-button:hover {
  transform: none;
}

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

.button-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.96);
}

.response-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.response-table th,
.response-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--ink);
  font-size: 0.94rem;
}

.response-table th {
  background: rgba(233, 239, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.response-table tbody tr:last-child td {
  border-bottom: 0;
}

.response-table tbody tr.selected td {
  background: color-mix(in srgb, var(--primary) 7%, #ffffff);
}

.response-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 118px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 760;
  white-space: nowrap;
}

.response-select input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.intro-copy {
  max-width: 72ch;
}

.section-copy-wrap {
  max-width: 620px;
}

.section-copy-wrap .demo-button {
  margin-top: 14px;
}

.shared-component-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(63, 81, 229, 0.16);
  border-radius: 18px;
  background: rgba(236, 241, 255, 0.82);
}

.shared-component-note span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shared-component-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.layout-preview-pair {
  justify-self: end;
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 3.15fr 0.38fr;
  gap: 24px;
  align-items: stretch;
}

.layout-preview-pair.host-mvp1-preview {
  position: static;
  width: 100%;
  max-width: none;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(220px, 0.42fr);
  gap: 28px;
}

.layout-preview-desktop,
.layout-preview-phone {
  min-width: 0;
}

.layout-preview-desktop {
  align-self: center;
  width: 100%;
}

.host-mvp1-preview .layout-preview-desktop {
  position: static;
  inset: auto;
  z-index: 1;
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(63, 81, 229, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-screen {
  min-height: 620px;
  padding: 18px;
  border-radius: 24px;
}

.host-mvp1-desktop-screen {
  min-height: 1240px;
  padding: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 34px 58px rgba(0, 0, 0, 0.24);
}

.desktop-screen .static-layout-empty {
  min-height: 586px;
  border-radius: 20px;
  aspect-ratio: 16 / 8.45;
}

.preview-empty-desktop {
  font-size: 13px;
}

.preview-empty-phone {
  font-size: 12px;
}

.layout-preview-phone {
  max-width: 196px;
  justify-self: end;
}

.host-mvp1-preview .layout-preview-phone {
  position: static;
  right: auto;
  top: auto;
  z-index: 2;
  max-width: none;
  align-self: start;
  width: 100%;
}

.layout-preview-phone .phone-frame {
  max-width: 196px;
}

.host-mvp1-preview .layout-preview-phone .phone-frame {
  position: relative;
  max-width: none;
  width: 100%;
  padding: 7px 7px 12px;
  border-radius: 34px;
  background: linear-gradient(180deg, #0b0f16 0%, #03060a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow:
    0 18px 34px rgba(12, 17, 26, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.host-mvp1-preview .layout-preview-phone .phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-style: solid;
  border-color: #05070b;
  border-width: 5px 5px 6px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.host-mvp1-preview .layout-preview-phone .phone-frame::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  height: 2px;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(180deg, #0f1520 0%, #05070b 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 3;
  pointer-events: none;
}

.layout-preview-phone .phone-screen {
  min-height: 410px;
}

.host-mvp1-preview .layout-preview-phone .phone-screen {
  min-height: 0;
  aspect-ratio: 1260 / 2355;
  padding: 9px 9px 10px;
  border-radius: 26px;
  border: 0;
  background: #05070b;
  position: relative;
  z-index: 1;
}

.layout-preview-phone .static-layout-empty {
  min-height: 398px;
  aspect-ratio: 790 / 1688;
}

.phone-frame {
  justify-self: end;
  width: 100%;
  max-width: 346px;
  padding: 3px;
  border-radius: 32px;
  background: linear-gradient(180deg, #151b27 0%, #0e131c 100%);
  box-shadow:
    0 18px 38px rgba(12, 17, 26, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.phone-screen {
  min-height: 620px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f6fd 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.static-preview-screen {
  display: flex;
  min-height: auto;
  padding: 1px;
  border-radius: 29px;
  background: linear-gradient(180deg, #111723 0%, #090d15 100%);
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 22px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.static-layout-preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 790 / 1688;
  border-radius: 28px;
  background: #ffffff;
  object-fit: cover;
  object-position: top center;
  box-shadow: none;
}

.static-layout-preview-desktop {
  aspect-ratio: 2048 / 1028;
  object-position: center top;
}

.static-layout-preview-host-mvp1 {
  width: 100%;
  max-width: none;
  transform: none;
  transform-origin: top center;
}

.static-layout-preview-host-mvp1-phone {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  background: #ffffff;
  border-radius: 20px;
  display: block;
}

.static-layout-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 620px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(67, 56, 202, 0.12), transparent 42%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fd 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: rgba(100, 116, 139, 0.92);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.preview-empty-split {
  padding: 20px;
  text-align: center;
  line-height: 1.55;
}

.preview-empty-split span {
  max-width: 20ch;
}

.app-topbar,
.map-strip,
.signal-grid {
  display: grid;
  gap: 10px;
}

.app-topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 16px;
}

.brand-chip,
.tiny-chip,
.map-strip span,
.signal-card {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
}

.brand-chip,
.tiny-chip {
  padding: 8px 12px;
  font-weight: 700;
}

.search-bar,
.listing-card,
.detail-block,
.detail-note,
.task-card,
.dashboard-stat,
.hero-image {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.search-bar,
.detail-note,
.hero-image {
  padding: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-bar {
  margin-bottom: 14px;
}

.map-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.map-strip span,
.signal-card {
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
}

.listing-card,
.task-card,
.detail-block,
.dashboard-stat {
  padding: 14px;
  margin-bottom: 12px;
}

.listing-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--ink);
}

.listing-meta,
.dashboard-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-image {
  display: grid;
  place-items: center;
  min-height: 170px;
  margin-bottom: 12px;
}

.signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.primary-button {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4a8dff, #1f66db);
  color: #ffffff;
  text-align: center;
  font-weight: 800;
}

.dashboard-stat {
  text-align: center;
}

.dashboard-number {
  margin: 0 0 6px;
  font-size: 2.6rem;
  line-height: 1;
}

.demo-body {
  background:
    radial-gradient(circle at top left, rgba(31, 102, 219, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #eef4fb 100%);
}

.demo-page {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.single-demo-page {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.demo-header,
.reference-shell,
.placeholder-page {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(19, 41, 69, 0.08);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 28px 30px;
  margin-bottom: 24px;
}

.demo-title {
  margin: 0 0 12px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.demo-copy {
  max-width: 68ch;
}

.reference-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
}

.brand-panel {
  padding: 20px 8px;
}

.roomie-logo {
  margin-bottom: 28px;
}

.roof-mark {
  display: block;
  width: 84px;
  height: 20px;
  margin: 0 0 8px 56px;
  border-top: 8px solid #1f66db;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-radius: 12px;
}

.wordmark {
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
  color: #1f66db;
  letter-spacing: -0.06em;
}

.brand-tagline {
  margin-bottom: 26px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}

.brand-tagline span {
  color: #1f66db;
}

.info-card {
  padding: 22px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.card-label {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.swatch-row,
.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.swatch-row + .swatch-row,
.feature-row + .feature-row {
  margin-top: 16px;
}

.swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.swatch-1 { background: #3b82f6; }
.swatch-2 { background: #93c5fd; }
.swatch-3 { background: #f8fafc; border: 1px solid var(--line); }
.swatch-4 { background: #1f2937; }
.swatch-5 { background: #10b981; }

.swatch-row strong,
.feature-row strong {
  display: block;
  margin-bottom: 2px;
}

.swatch-row p,
.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.feature-row span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eff5ff;
  font-size: 1.1rem;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.app-phone {
  min-height: 910px;
  padding: 12px;
  border: 1px solid #e2e8f4;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.status-bar,
.demo-app-header,
.detail-topline,
.section-row,
.saved-row,
.listing-host-card,
.contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-bar {
  margin-bottom: 10px;
  padding: 2px 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.demo-app-header,
.detail-topline {
  padding: 8px 6px 14px;
}

.mini-logo {
  color: #1f66db;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.header-icons {
  display: flex;
  gap: 16px;
  color: var(--ink);
  font-size: 1.3rem;
}

.search-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  padding: 14px 56px 14px 16px;
  border: 1px solid #e5ebf5;
  border-radius: 999px;
  background: #ffffff;
  color: #7a879b;
  box-shadow: 0 10px 24px rgba(19, 41, 69, 0.05);
}

.filter-fab {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #1f66db;
  color: #ffffff;
  font-size: 1rem;
}

.section-row {
  margin-bottom: 12px;
}

.section-row h3 {
  margin: 0;
  font-family: inherit;
  font-size: 1.2rem;
}

.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f66db;
  font-weight: 700;
}

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

.demo-listing-card {
  position: relative;
  padding: 0 0 14px;
  border: 1px solid #e8edf6;
  border-radius: 18px;
  background: #ffffff;
  text-align: left;
  overflow: hidden;
}

.demo-listing-card.selected {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.demo-thumb,
.saved-thumb,
.detail-hero,
.thumb {
  background-size: cover;
  background-position: center;
  border-radius: 14px;
}

.demo-thumb {
  height: 110px;
  margin: 10px;
}

.heart-btn,
.saved-heart {
  border: 0;
  background: transparent;
  color: #1f66db;
  font-size: 1.2rem;
}

.heart-btn {
  position: absolute;
  right: 12px;
  top: 12px;
}

.mini-pill,
.pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff5ff;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-listing-card .mini-pill,
.demo-listing-card h4,
.demo-listing-card p,
.demo-listing-card strong {
  margin-left: 12px;
}

.demo-listing-card h4,
.saved-copy h4 {
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.demo-listing-card p,
.saved-copy p {
  margin-bottom: 4px;
  color: #6b7b91;
  font-size: 0.88rem;
}

.demo-listing-card strong,
.saved-copy strong {
  color: #1f66db;
  font-size: 0.95rem;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 12px;
  color: #74839a;
  font-size: 0.78rem;
  text-align: center;
}

.tabbar .active {
  color: #1f66db;
  font-weight: 700;
}

.detail-hero {
  height: 260px;
  margin-bottom: 12px;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.thumb {
  height: 56px;
  background: linear-gradient(135deg, #eadfce, #b89c7f);
}

.thumb.active {
  outline: 2px solid #93c5fd;
}

.thumb.more {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 700;
}

.detail-title {
  margin: 10px 0 6px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.9rem;
  line-height: 1.08;
}

.detail-location {
  margin-bottom: 10px;
  color: #63758d;
}

.detail-price {
  margin-bottom: 14px;
  color: #1f66db;
  font-size: 1.95rem;
  font-weight: 800;
}

.amenity-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 10px;
  border-radius: 18px;
  background: #eff5ff;
  margin-bottom: 16px;
  text-align: center;
}

.amenity-strip strong,
.amenity-strip span {
  display: block;
}

.amenity-strip span {
  margin-top: 4px;
  color: #60738d;
  font-size: 0.72rem;
}

.listing-host-card,
.about-card {
  padding: 14px;
  border: 1px solid #e6ebf5;
  border-radius: 18px;
  background: #ffffff;
  margin-bottom: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9e6d8, #9fb39a);
  font-weight: 800;
  overflow: hidden;
}

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

.listing-host-meta {
  flex: 1;
  padding: 0 12px;
}

.verified,
.rating {
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
}

.listing-host-meta h4,
.about-card h4 {
  margin: 4px 0;
}

.listing-host-meta p,
.about-card p,
.alert-card p {
  margin: 0;
  color: #63758d;
  line-height: 1.55;
}

.contact-actions {
  flex-direction: column;
  gap: 10px;
}

.ghost-btn,
.solid-btn,
.inquiry-btn {
  border-radius: 14px;
  font-weight: 700;
}

.ghost-btn,
.solid-btn {
  min-width: 102px;
  padding: 10px 14px;
}

.ghost-btn {
  border: 1px solid #c9d8f5;
  background: #ffffff;
  color: #1f66db;
}

.solid-btn,
.inquiry-btn {
  border: 0;
  background: #1f66db;
  color: #ffffff;
}

.inquiry-btn {
  width: 100%;
  padding: 16px 18px;
  font-size: 1rem;
}

.saved-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.saved-row {
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid #e8edf6;
  border-radius: 18px;
  background: #ffffff;
}

.saved-thumb {
  width: 110px;
  border-radius: 14px;
}

.saved-copy {
  flex: 1;
}

.saved-heart {
  align-self: center;
}

.alert-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #dce6f7;
  border-radius: 18px;
  background: #ffffff;
}

.alert-card strong {
  display: block;
  margin-bottom: 4px;
}

.placeholder-page {
  width: min(920px, calc(100% - 28px));
  margin: 28px auto;
  padding: 48px 36px;
}

.single-demo-header {
  margin-bottom: 20px;
  padding: 22px 6px 0;
}

.single-demo-header .demo-copy {
  max-width: 60ch;
  margin-bottom: 18px;
}

.phone-stage {
  display: grid;
  place-items: center;
}

.single-phone {
  width: min(100%, 390px);
}

.single-listing-grid {
  grid-template-columns: 1fr;
}

.single-listing-grid .demo-listing-card {
  display: block;
}

.icon-link,
.tab-link {
  color: inherit;
  text-decoration: none;
}

.full-width-link,
.full-width-demo-link {
  display: flex;
  width: 100%;
}

.placeholder-phone {
  min-height: 760px;
}

.internal-section {
  margin-bottom: 0;
}

.internal-preview {
  display: grid;
  align-content: start;
  gap: 14px;
}

@media (max-width: 1180px) {
  .reference-shell {
    grid-template-columns: 1fr;
  }

  .phone-grid {
    grid-template-columns: 1fr;
  }

  .app-phone {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .survey-app-shell {
    border-radius: 28px;
  }

  .layout-section {
    grid-template-columns: 1fr;
  }

  .layout-section.host-mvp1-layout {
    grid-template-columns: 1fr;
  }

  .mvp-card-grid {
    gap: 8px;
  }

  .mvp-thumbnail-card {
    min-height: 112px;
    gap: 12px;
    padding: 16px 8px;
    border-radius: 16px;
  }

  .mvp-card-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .survey-grid,
  .priority-ranking-grid,
  .sus-key,
  .theme-option-grid {
    grid-template-columns: 1fr;
  }

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

  .mvp-ranking-grid {
    grid-template-columns: 1fr;
  }

  .survey-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .survey-app-header {
    padding: 16px 18px;
    flex-direction: row;
    align-items: center;
  }

  .survey-app-actions {
    width: auto;
    justify-content: flex-end;
  }

  .survey-section-tabs {
    margin: 0;
    padding: 12px 14px 10px;
  }

  .survey-feature-body {
    padding: 0 14px 14px;
  }

  .phone-frame {
    justify-self: stretch;
    max-width: none;
  }

  .layout-preview-pair {
    justify-self: stretch;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .layout-preview-pair.host-mvp1-preview {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
  }

  .host-mvp1-preview .layout-preview-desktop,
  .host-mvp1-preview .layout-preview-phone {
    position: static;
    inset: auto;
    max-width: none;
  }

  .desktop-screen {
    min-height: 240px;
  }

  .desktop-screen .static-layout-empty {
    min-height: 212px;
  }

  .layout-preview-phone,
  .layout-preview-phone .phone-frame {
    max-width: none;
    justify-self: stretch;
  }

  .layout-preview-phone .phone-screen {
    min-height: 420px;
  }

  .layout-preview-phone .static-layout-empty {
    min-height: 398px;
  }

  .demo-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 16px, 1120px);
    padding-top: 16px;
  }

  .survey-app-shell {
    width: min(100% - 12px, 460px);
    min-height: calc(100dvh - 12px);
    margin: 6px auto;
    border-radius: 24px;
  }

  .hero,
  .layout-section {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .survey-section {
    padding: 16px;
    border-radius: 18px;
  }

  .survey-app-header {
    padding: 14px 16px;
  }

  .survey-app-brand {
    align-items: center;
  }

  .survey-logo {
    width: 104px;
  }

  .survey-section-tabs {
    margin: 0;
    padding: 10px 12px 8px;
  }

  .survey-feature-body {
    padding: 0 12px 12px;
  }

  .survey-save-action-row {
    align-items: flex-start;
  }

  .survey-save-note {
    max-width: 22ch;
  }

  .survey-step-controls {
    grid-template-columns: 1fr 1fr;
    padding: 12px 16px 14px;
  }

  .survey-step-indicator {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .survey-step-controls [data-survey-prev] {
    grid-column: 1;
    grid-row: 2;
  }

  .survey-step-controls [data-survey-next] {
    grid-column: 2;
    grid-row: 2;
  }

  .subhead-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subhead-tab {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.84rem;
    text-align: center;
  }

  .survey-section-tabs .subhead-tab {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

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

  .likert-row {
    gap: 8px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.3rem, 11vw, 3.6rem);
  }

  .phone-screen {
    min-height: 560px;
  }

  .desktop-screen {
    padding: 12px;
  }
}
