/* ======================================
   Heron Phone Config Studio — Styles
   Matching security.heyheron.ai aesthetic
   ====================================== */

/* --- Reset & Variables --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #02015A;
  --blue: #0000FF;
  --blue-dark: #0000A0;
  --green: #00D268;
  --green-dark: #00A854;
  --purple: #5555FF;
  --body-text: #4E5774;
  --light-text: #68708C;
  --bg: #ECF1F7;
  --bg-card: #F3F7FB;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --radius-card: 16px;
  --radius-pill: 100px;
  --radius-input: 12px;
  --shadow-card: 0 8px 24px rgba(2,1,90,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: linear-gradient(var(--bg) 0%, rgba(243,247,251,0) 100%);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section > .container > h2 {
  text-align: center;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--blue);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-desc {
  text-align: center;
  max-width: 560px;
  margin: 0.75rem auto 0;
  color: var(--light-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: none;
  width: 100%;
  padding: 0 3rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img {
  height: 36px;
  filter: brightness(0) saturate(100%) invert(9%) sepia(72%) saturate(6932%) hue-rotate(244deg) brightness(67%) contrast(116%);
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta { flex-shrink: 0; }

.nav-links .mobile-cta { display: none; }

/* Mobile hamburger toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.75rem;
  line-height: 1.4;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

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

.btn-primary:disabled {
  background: var(--border);
  color: var(--light-text);
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  font-weight: 600;
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.45rem 1.1rem;
}

.btn-xs {
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 0.9rem 2rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- Hero --- */
.hero {
  padding: 8rem 0 5rem;
  text-align: center;
  background: linear-gradient(279deg, rgba(0,210,104,0.10) 0%, rgba(85,85,255,0.10) 100%);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--white));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--light-text);
  line-height: 1.75;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
}

.badge-blue {
  background: rgba(0,0,255,0.06);
  color: var(--blue);
}

.badge-green {
  background: rgba(0,210,104,0.08);
  color: var(--green-dark);
}

.badge-purple {
  background: rgba(85,85,255,0.08);
  color: var(--purple);
}

.badge-sm {
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
}

.hero-cta {
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
}

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.steps-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--light-text);
  line-height: 1.65;
}

/* --- Studio Card --- */
.studio-card {
  max-width: 800px;
  margin: 3rem auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* --- Email Gate / Login --- */
.studio-gate {
  padding: 3.5rem 2.5rem;
  text-align: center;
}

.gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.studio-gate h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.studio-gate > p {
  color: var(--light-text);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.gate-form input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color 0.2s;
  color: var(--navy);
}

.gate-form input:focus {
  border-color: var(--blue);
}

.gate-form input::placeholder {
  color: #A0AEC0;
}

.gate-form .btn {
  margin-top: 0.25rem;
  justify-content: center;
}

.form-error {
  color: #E53E3E;
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

/* --- Wizard Step Layout --- */
.wizard-step {
  padding: 2rem 2.5rem 2.5rem;
}

.wizard-step-header {
  margin-bottom: 2rem;
}

.wizard-step-header .section-label {
  text-align: left;
}

.wizard-step-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--light-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.step-desc strong {
  color: var(--navy);
}

/* --- Wizard Navigation --- */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* --- Wizard Stepper --- */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step[role="button"] {
  cursor: pointer;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
}

.step-label {
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.step-upcoming .step-circle {
  background: var(--bg);
  color: var(--light-text);
}

.step-upcoming .step-label {
  color: var(--light-text);
}

.step-active .step-circle {
  background: var(--blue);
  color: var(--white);
}

.step-active .step-label {
  color: var(--navy);
  font-weight: 600;
}

.step-completed .step-circle {
  background: var(--green);
  color: var(--white);
}

.step-completed .step-label {
  color: var(--navy);
}

.step-completed:hover .step-label {
  color: var(--blue);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
  min-width: 12px;
}

/* --- Config Selection Cards --- */
.config-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.config-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--white);
}

.config-card:hover {
  border-color: rgba(0,0,255,0.3);
  box-shadow: var(--shadow-sm);
}

.config-card.selected {
  border-color: var(--blue);
  background: rgba(0,0,255,0.02);
}

.config-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0,0,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.config-card-body {
  flex: 1;
  min-width: 0;
}

.config-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.config-card-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.config-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.config-desc {
  font-size: 0.88rem;
  color: var(--light-text);
  line-height: 1.55;
}

.config-card-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  color: transparent;
  margin-top: 0.25rem;
}

.config-card.selected .config-card-check {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

/* --- Diagram Cards --- */
.diagram-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.diagram-card {
  padding: 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--white);
}

.diagram-card:hover {
  border-color: rgba(0,0,255,0.3);
  box-shadow: var(--shadow-sm);
}

.diagram-card.selected {
  border-color: var(--blue);
  background: rgba(0,0,255,0.02);
}

.diagram-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.diagram-card-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.diagram-desc {
  font-size: 0.88rem;
  color: var(--light-text);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.diagram-card-check {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: transparent;
}

.diagram-card.selected .diagram-card-check {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

/* --- Flow Diagram --- */
.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-input);
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.flow-row-split {
  gap: 0.75rem;
}

.flow-or {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light-text);
  padding: 0 0.25rem;
}

.flow-node {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
  min-width: 80px;
  border: 1.5px solid transparent;
}

.flow-node span {
  display: block;
}

.flow-node-start {
  background: rgba(0,210,104,0.1);
  color: #0a7c3e;
  border-color: rgba(0,210,104,0.3);
}

.flow-node-action {
  background: rgba(0,0,255,0.06);
  color: var(--blue-dark);
  border-color: rgba(0,0,255,0.15);
}

.flow-node-decision {
  background: rgba(234,179,8,0.1);
  color: #92400e;
  border-color: rgba(234,179,8,0.3);
}

.flow-node-heron {
  background: rgba(85,85,255,0.08);
  color: var(--purple);
  border-color: rgba(85,85,255,0.25);
}

.flow-node-end {
  background: rgba(78,87,116,0.08);
  color: var(--body-text);
  border-color: rgba(78,87,116,0.15);
}

.flow-arrow-down {
  width: 2px;
  height: 16px;
  background: var(--border);
  position: relative;
  margin: 0 auto;
}

.flow-arrow-down::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--border);
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 1rem 1.15rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  outline: none;
  resize: vertical;
  min-height: 120px;
  color: var(--navy);
  line-height: 1.6;
  transition: border-color 0.2s;
}

.form-textarea:focus {
  border-color: var(--blue);
}

.form-textarea::placeholder {
  color: #A0AEC0;
}

.textarea-footer {
  margin-top: 0.4rem;
  text-align: right;
  font-size: 0.78rem;
  color: var(--light-text);
}

/* --- Voice Grid --- */
.voice-selector-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
}

.voice-option {
  position: relative;
}

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

.voice-option label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
}

.voice-option label:hover {
  border-color: rgba(0,0,255,0.3);
  background: rgba(0,0,255,0.02);
}

.voice-option input:checked + label {
  border-color: var(--blue);
  background: rgba(0,0,255,0.04);
}

.voice-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.voice-info {
  min-width: 0;
}

.voice-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.voice-desc {
  font-size: 0.7rem;
  color: var(--light-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Avatar colors per region */
.voice-avatar.nz { background: #0066CC; }
.voice-avatar.au { background: #D97706; }
.voice-avatar.us { background: #7C3AED; }

/* --- Message Cards --- */
.message-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
}

.message-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.message-card-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.message-desc {
  font-size: 0.82rem;
  color: var(--light-text);
  line-height: 1.45;
}

.message-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.status-draft {
  background: rgba(78,87,116,0.08);
  color: var(--light-text);
}

.status-generated {
  background: rgba(0,210,104,0.1);
  color: var(--green-dark);
}

.status-missing {
  background: rgba(234,150,0,0.1);
  color: #b45309;
}

/* Download progress info */
.step4-download-info {
  text-align: center;
  margin-bottom: 0.5rem;
}

.download-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
}

.download-progress.done {
  color: var(--green-dark);
  background: rgba(0,210,104,0.08);
}

.download-progress.partial {
  color: #b45309;
  background: rgba(234,150,0,0.08);
}

.toast-warning {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #fef3c7;
  color: #92400e;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 9999;
  transition: opacity 0.4s ease;
  max-width: 360px;
}

.message-tip {
  font-size: 0.8rem;
  color: var(--light-text);
  font-style: italic;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-radius: 8px;
}

.msg-textarea {
  min-height: 90px;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}

.message-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}


.msg-loading {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--light-text);
}
.msg-loading.is-loading {
  display: flex;
}

/* --- Compact Audio Player --- */
.compact-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-input);
  margin-top: 0.25rem;
}

.compact-play-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.compact-play-btn:hover {
  background: var(--blue-dark);
}

.compact-play-btn svg[hidden] {
  display: none;
}

.compact-progress {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.compact-progress-bar {
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
  width: 0%;
  will-change: width;
}

.compact-time {
  font-size: 0.72rem;
  color: var(--light-text);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 32px;
}

.compact-speed-btn {
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 255, 0.06);
  color: var(--blue);
  border: 1px solid rgba(0, 0, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.15s ease;
}
.compact-speed-btn:hover {
  background: rgba(0, 0, 255, 0.12);
}

.msg-dl-btn {
  flex-shrink: 0;
}

/* --- Spinners --- */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-sm {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Summary (Step 5) --- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
}

.summary-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-text);
  margin-bottom: 0.4rem;
}

.summary-value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.summary-sub {
  font-size: 0.82rem;
  color: var(--light-text);
  margin-top: 0.25rem;
}

.summary-messages {
  margin-bottom: 2rem;
}

.summary-messages h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.summary-message-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-message-row:last-child {
  border-bottom: none;
}

.summary-msg-info {
  flex: 1;
  min-width: 0;
}

.summary-msg-info strong {
  font-size: 0.88rem;
  color: var(--navy);
  display: block;
  margin-bottom: 0.2rem;
}

.summary-msg-text {
  font-size: 0.8rem;
  color: var(--light-text);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-msg-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.text-muted {
  font-size: 0.78rem;
  color: var(--light-text);
}

/* --- Download Section --- */
.download-section {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  margin-bottom: 0;
}

.download-note {
  font-size: 0.82rem;
  color: var(--light-text);
  margin-top: 0.75rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(131deg, #0000FF 0%, #0000A0 100%);
  padding: 5rem 0;
  text-align: center;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  padding: 4rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand img { filter: none; }

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--light-text);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--light-text);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--light-text);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .nav-inner { padding: 0 1.5rem; }

  .mobile-toggle { display: flex; }
  .nav-cta.desktop-only { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(2,1,90,0.08);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(226,232,240,0.5);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links .mobile-cta {
    display: block;
    margin-top: 0.75rem;
    text-align: center;
    background: var(--blue);
    color: var(--white);
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: none;
  }

  .nav-links .mobile-cta:hover {
    background: var(--blue-dark);
    color: var(--white);
  }

  .section { padding: 4rem 0; }
  .hero { padding: 6rem 0 3.5rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .voice-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gate-form { flex-direction: column; }
  .wizard-step { padding: 1.5rem; }
  .config-card { flex-direction: column; gap: 1rem; }
  .config-card-check { position: absolute; top: 1rem; right: 1rem; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-message-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .wizard-stepper { flex-wrap: wrap; gap: 0.25rem; padding: 1rem; }
  .step-line { min-width: 8px; }
  .step-label { font-size: 0.7rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .voice-grid { grid-template-columns: 1fr; }
  .wizard-stepper { justify-content: flex-start; overflow-x: auto; }
  .summary-msg-actions { width: 100%; }
}
