/* ============================================
   VisionLab — Levantamento de Requisitos
   ============================================ */

:root {
  --bg-deep: #07111f;
  --bg-mid: #0c1a2e;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.11);
  --border: rgba(148, 180, 220, 0.18);
  --border-strong: rgba(94, 210, 220, 0.45);
  --text: #e8f0fa;
  --text-muted: #93a7c0;
  --accent: #2fd4c8;
  --accent-2: #4aa8ff;
  --accent-soft: rgba(47, 212, 200, 0.14);
  --danger: #ff7b8a;
  --danger-soft: rgba(255, 123, 138, 0.12);
  --success: #3ddea8;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Atmosphere */

.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(74, 168, 255, 0.22), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(47, 212, 200, 0.16), transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 48%, #081526 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 18s var(--ease) infinite alternate;
}

.orb-a {
  width: 340px;
  height: 340px;
  top: 12%;
  left: -80px;
  background: rgba(47, 212, 200, 0.35);
}

.orb-b {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: 8%;
  background: rgba(74, 168, 255, 0.28);
  animation-delay: -6s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 180, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 180, 220, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.45;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}

/* Layout */

.app {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.75rem 0 4rem;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.7s var(--ease) both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 44px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 14px rgba(47, 212, 200, 0.25));
}

.brand-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.brand-vision {
  color: var(--text);
}

.brand-lab {
  color: var(--accent);
}

.brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-btn:hover {
  background: var(--surface-strong);
  border-color: rgba(148, 180, 220, 0.4);
}

.nav-btn-accent {
  border-color: rgba(47, 212, 200, 0.55);
  background: linear-gradient(135deg, rgba(47, 212, 200, 0.28), rgba(74, 168, 255, 0.18));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(47, 212, 200, 0.2) inset;
}

.nav-btn-accent:hover {
  border-color: var(--border-strong);
  filter: brightness(1.08);
}

.nav-btn-trash {
  border-color: rgba(255, 123, 138, 0.55);
  background: rgba(255, 123, 138, 0.14);
  color: #ffb0ba;
  font-weight: 700;
  gap: 0.4rem;
}

.nav-btn-trash:hover {
  border-color: rgba(255, 123, 138, 0.8);
  background: rgba(255, 123, 138, 0.22);
  color: #fff;
}

.nav-btn-trash.is-nav-active {
  background: rgba(255, 123, 138, 0.28);
  border-color: rgba(255, 123, 138, 0.9);
  color: #fff;
}

.nav-btn-quiz {
  border-color: rgba(74, 168, 255, 0.5);
  background: rgba(74, 168, 255, 0.14);
  color: #9ec9ff;
  font-weight: 700;
}

.nav-btn-quiz:hover,
.nav-btn-quiz.is-nav-active {
  border-color: rgba(74, 168, 255, 0.85);
  background: rgba(74, 168, 255, 0.24);
  color: #fff;
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: rgba(255, 123, 138, 0.35);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.nav-btn[hidden],
.app-nav [hidden] {
  display: none !important;
}

.success-actions {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem auto 0;
  max-width: 26rem;
}

.success-actions .btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.hero-brand {
  margin-bottom: 1.15rem;
}

.hero-logo {
  display: block;
  width: 72px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(47, 212, 200, 0.28));
}

/* Screens */

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: fadeUp 0.55s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card-hero,
.card-success {
  text-align: left;
  padding: 2.35rem 1.65rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 4.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.28;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.meta-row {
  margin-bottom: 2rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 212, 200, 0.25);
  color: var(--text);
  font-size: 0.9rem;
}

/* Progress */

.progress-wrap {
  margin-bottom: 1.25rem;
  animation: fadeUp 0.45s var(--ease) both;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

#progress-percent {
  color: var(--accent);
  font-weight: 600;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.45s var(--ease);
}

.step-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.step-dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s var(--ease);
}

.step-dot.is-done,
.step-dot.is-current {
  background: var(--accent);
}

.step-dot.is-current {
  box-shadow: 0 0 12px rgba(47, 212, 200, 0.5);
}

/* Steps */

.step-panel {
  margin: 0;
  min-width: 0;
  min-inline-size: 0;
  border: 1px solid var(--border);
  animation: panelIn 0.45s var(--ease) both;
}

.step-panel[hidden] {
  display: none !important;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-panel.is-leaving {
  animation: panelOut 0.28s var(--ease) both;
}

@keyframes panelOut {
  to {
    opacity: 0;
    transform: translateX(-12px);
  }
}

/*
  <legend> dentro de <fieldset> fica “colado” na borda por padrão do browser.
  float + width 100% coloca o título dentro do card, sem cortar.
*/
.step-legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 1.75rem;
}

.step-legend + * {
  clear: both;
}

.step-kicker {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.step-legend h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.step-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Fields */

.field {
  margin-bottom: 1.65rem;
}

.field:last-child {
  margin-bottom: 0;
}

label,
.label-text {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.req {
  color: var(--accent);
}

input[type="text"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.45);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(147, 167, 192, 0.7);
}

input:hover,
textarea:hover {
  border-color: rgba(148, 180, 220, 0.35);
}

input:focus,
textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(47, 212, 200, 0.15);
  background: rgba(7, 17, 31, 0.65);
}

input.is-invalid,
textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.hint {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--danger);
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  font-weight: 400;
  cursor: pointer;
}

.inline-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.date-feedback {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.45);
  font-size: 0.9rem;
  line-height: 1.45;
}

.date-feedback strong {
  font-weight: 650;
  color: #fff;
}

.date-feedback.is-ok {
  border-color: rgba(61, 222, 168, 0.35);
  background: rgba(61, 222, 168, 0.1);
  color: var(--text);
}

.date-feedback.is-warn {
  border-color: rgba(255, 123, 138, 0.45);
  background: var(--danger-soft);
  color: #ffd0d6;
}

.date-feedback .date-feedback-days {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  opacity: 0.9;
}

/* Logo upload */

.upload-box {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(148, 180, 220, 0.35);
  background: rgba(7, 17, 31, 0.4);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-box:hover {
  border-color: rgba(47, 212, 200, 0.45);
  background: rgba(7, 17, 31, 0.55);
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-box.has-file input[type="file"] {
  height: 3.2rem;
  inset: auto 0 0 0;
}

.upload-copy {
  display: grid;
  gap: 0.25rem;
  pointer-events: none;
}

.upload-copy strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.upload-copy span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 3;
}

.logo-preview img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem;
}

.logo-preview-meta {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.logo-preview-meta span {
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--text);
}

.upload-box.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

input[type="date"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Choice controls */

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.choice-stack {
  display: grid;
  gap: 0.7rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.choice-card,
.choice-pill {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0;
  min-width: 0;
  cursor: pointer;
}

.choice-card input,
.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span,
.choice-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.35);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.choice-pill span {
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  overflow-wrap: normal;
  word-break: normal;
}

.choice-card:hover span,
.choice-pill:hover span {
  border-color: rgba(148, 180, 220, 0.4);
  background: var(--surface-hover);
}

.choice-card input:checked + span,
.choice-pill input:checked + span {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(47, 212, 200, 0.2);
  color: #fff;
}

.choice-card input:focus-visible + span,
.choice-pill input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice-wide span {
  justify-content: flex-start;
  text-align: left;
  padding: 0.95rem 1.15rem;
}

.choice-grid.is-invalid,
.choice-row.is-invalid,
.choice-stack.is-invalid {
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--danger);
  padding: 0.45rem;
  gap: 0.75rem;
}

/* Actions */

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 0.9rem 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #3bb8ef 100%);
  color: #041018;
  box-shadow: 0 10px 28px rgba(47, 212, 200, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(47, 212, 200, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-strong);
}

.btn-lg {
  width: 100%;
  padding: 1.05rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

#btn-next,
#btn-submit {
  margin-left: auto;
}

/* Review */

.review-content {
  display: grid;
  gap: 1rem;
}

.review-block {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.35);
}

.review-block h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.review-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(148, 180, 220, 0.1);
}

.review-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.review-item dt {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-item dd {
  margin: 0;
  font-size: 0.95rem;
  word-break: break-word;
  white-space: pre-wrap;
}

.review-edit {
  margin-top: 0.65rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-edit:hover {
  color: var(--accent);
}

/* Success */

.card-success {
  text-align: center;
}

.card-success .lead {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.request-id {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  color: var(--success);
  background: rgba(61, 222, 168, 0.12);
  border: 1px solid rgba(61, 222, 168, 0.3);
  animation: popIn 0.55s var(--ease) both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.next-steps {
  margin: 1.75rem auto 0;
  max-width: 26rem;
  padding: 1.25rem 1.2rem;
  text-align: left;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.4);
}

.next-steps-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.next-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.next-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.next-step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 212, 200, 0.3);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.next-steps-note {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 180, 220, 0.12);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.signature-block {
  margin: 1.75rem 0 0;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
}

.signature-logo {
  display: block;
  width: 56px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(47, 212, 200, 0.3));
}

.signature {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

/* Responsive */

@media (min-width: 560px) {
  .card,
  .card-hero,
  .card-success {
    padding: 2.4rem 2.15rem;
  }

  /* Mantém 2 colunas para textos longos não ficarem espremidos */
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
  }
}

@media (max-width: 720px) {
  .brand-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .brand {
    width: 100%;
  }

  .app-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .nav-btn {
    width: 100%;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    border-radius: 10px;
  }
}

@media (max-width: 420px) {
  .app {
    width: min(100% - 1.35rem, var(--max));
    padding-top: 1.15rem;
  }

  .brand-tag {
    display: none;
  }

  .brand-tagline {
    display: none;
  }

  .brand-logo {
    width: 38px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .card {
    padding: 1.55rem 1.15rem;
  }

  .form-actions {
    flex-direction: column-reverse;
    gap: 0.7rem;
  }

  #btn-next,
  #btn-submit,
  #btn-back {
    margin-left: 0;
    width: 100%;
  }

  .choice-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .choice-card span {
    min-height: 50px;
    padding: 0.9rem 1rem;
  }

  .app-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
