/* Activate Workspace — fullscreen onboarding */

.activate-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.activate-page .background {
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(72, 207, 206, 0.1), transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(255, 145, 0, 0.05), transparent 30%),
    linear-gradient(180deg, #fcfbfa 0%, var(--cream-mid) 50%, var(--cream-deep) 100%);
}

.activate-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.activate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  gap: 24px;
  position: relative;
  border-bottom: 1px solid transparent;
}

.activate-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(8, 62, 106, 0.07);
  z-index: -1;
  pointer-events: none;
}

/* Logo wordmark hidden — see styles.css nav/activate-header logo rules */

.activate-exit {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.activate-exit:hover {
  color: var(--navy);
}

.activate-progress {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
}

.activate-progress-track {
  height: 3px;
  background: rgba(8, 62, 106, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.activate-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--aqua));
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.activate-progress-label {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.activate-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px 60px;
}

.activate-stage {
  width: 100%;
  max-width: 680px;
  position: relative;
}

.activate-panel {
  display: none;
}

.activate-panel.is-active {
  display: block;
  animation: activateFadeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.activate-stage--wide {
  max-width: 960px;
}

.payment-page .activate-main {
  align-items: flex-start;
  padding-top: 32px;
}

@keyframes activateFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activate-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.activate-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 16px;
}

.activate-lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 36px;
}

/* AI conversation */

.ai-message {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.ai-avatar-wrap {
  flex-shrink: 0;
}

.ai-bubble {
  background: #fff;
  border: 1px solid rgba(31, 142, 201, 0.1);
  border-radius: var(--card-radius-sm);
  padding: 22px 26px;
  box-shadow: 0 16px 40px -12px rgba(8, 62, 106, 0.1);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  max-width: 520px;
}

.ai-bubble strong {
  font-weight: 600;
}

.ai-typing {
  display: inline-flex;
  gap: 5px;
  padding: 4px 0;
}

.ai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  animation: aiDot 1.2s infinite ease-in-out;
}

.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiDot {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

/* Chat-style questionnaire */

.activate-main:has(.activate-stage--chat) {
  align-items: flex-start;
  padding-top: 28px;
}

.activate-stage--chat {
  max-width: 760px;
}

.activate-stage--chat .activate-eyebrow {
  display: none;
}

/* Tall dark composer text box — question + answers inside one container */

.activate-panel--composer.is-active {
  display: flex;
  flex-direction: column;
}

.activate-panel--composer {
  background: linear-gradient(168deg, #1e1e22 0%, #14181d 45%, #062038 100%);
  border-radius: 44px;
  padding: 32px 36px 28px;
  min-height: min(560px, 78vh);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.05) inset,
    0 56px 110px -24px rgba(0, 0, 0, 0.48),
    0 28px 56px -16px rgba(8, 62, 106, 0.38);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.activate-panel--composer:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.07) inset,
    0 64px 120px -20px rgba(0, 0, 0, 0.52),
    0 32px 64px -14px rgba(72, 207, 206, 0.18);
}

.activate-panel--composer .ai-message {
  display: block;
  margin-bottom: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.activate-panel--composer .ai-message::before {
  display: none;
}

.activate-panel--composer .ai-bubble {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.2px;
}

.activate-panel--composer .ai-typing span {
  background: rgba(255, 255, 255, 0.7);
}

.activate-panel--composer .activate-field {
  margin-bottom: 20px;
}

.activate-panel--composer .activate-field:first-of-type {
  margin-top: 22px;
}

.activate-panel--composer .activate-field:last-of-type {
  margin-bottom: 0;
}

.activate-panel--composer .activate-field label {
  color: rgba(255, 255, 255, 0.48);
}

.activate-panel--composer .activate-field input,
.activate-panel--composer .activate-field textarea,
.activate-panel--composer .activate-field select {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
}

.activate-panel--composer .activate-field input::placeholder,
.activate-panel--composer .activate-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.activate-panel--composer .activate-field input:focus,
.activate-panel--composer .activate-field textarea:focus,
.activate-panel--composer .activate-field select:focus {
  border-color: rgba(72, 207, 206, 0.45);
  box-shadow: 0 0 0 4px rgba(72, 207, 206, 0.14);
}

.activate-panel--composer .activate-field.is-invalid input,
.activate-panel--composer .activate-field.is-invalid textarea {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16);
}

.activate-panel--composer .activate-field.is-invalid label {
  color: #fca5a5;
}

.activate-panel--composer .activate-options {
  gap: 8px;
}

.activate-panel--composer .activate-option {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.activate-panel--composer .activate-option:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(72, 207, 206, 0.32);
}

.activate-panel--composer .activate-option.is-selected,
.activate-panel--composer .activate-option:has(input:checked) {
  background: rgba(255, 145, 0, 0.12);
  border-color: rgba(255, 145, 0, 0.58);
  box-shadow: 0 8px 24px -10px rgba(255, 145, 0, 0.28);
}

.activate-panel--composer .activate-option-text small {
  color: rgba(255, 255, 255, 0.42);
}

.activate-panel--composer .activate-actions {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.activate-panel--composer .activate-btn-ghost {
  color: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}

.activate-panel--composer .activate-btn-ghost:hover {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.activate-panel--composer.is-exiting .ai-message,
.activate-panel--composer.is-exiting .activate-field,
.activate-panel--composer.is-exiting .activate-actions {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.activate-chat {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.activate-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
}

.activate-chat-thread:empty {
  display: none;
}

.activate-chat-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 90%;
  opacity: 0;
  animation: chatBubbleIn 0.55s ease forwards;
}

.activate-chat-bubble--ai {
  align-self: flex-start;
}

.activate-chat-bubble--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.activate-chat-avatar {
  display: none;
}

.activate-chat-text {
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.6;
  border-radius: 18px;
}

.activate-chat-bubble--ai .activate-chat-text {
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(31, 142, 201, 0.1);
  border-radius: 18px 18px 18px 6px;
  box-shadow: 0 12px 32px -12px rgba(8, 62, 106, 0.1);
}

.activate-chat-bubble--user .activate-chat-text {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: rgba(255, 255, 255, 0.94);
  border-radius: 18px 18px 6px 18px;
  box-shadow: 0 10px 28px -10px rgba(8, 62, 106, 0.28);
}

.activate-chat-live {
  position: relative;
}

.activate-stage--chat .activate-panel.is-active {
  animation: none;
}

.activate-stage--chat .activate-panel--composer.is-entering {
  animation: chatLiveIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.activate-stage--chat .activate-panel.is-exiting {
  display: block;
  animation: chatLiveOut 0.42s ease forwards;
  pointer-events: none;
}

.activate-stage--chat .activate-panel--composer.is-exiting {
  display: flex;
  flex-direction: column;
}

.activate-stage--chat .activate-panel--composer .ai-bubble {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.activate-stage--chat .activate-panel--composer .ai-message.is-visible .ai-bubble,
.activate-stage--chat .activate-panel--composer .ai-message.is-typing .ai-bubble {
  opacity: 1;
  transform: translateY(0);
}

.activate-stage--chat .activate-panel--composer .activate-field,
.activate-stage--chat .activate-panel--composer .activate-actions {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease 0.15s, transform 0.45s ease 0.15s;
}

.activate-stage--chat .activate-panel--composer.is-ready .activate-field,
.activate-stage--chat .activate-panel--composer.is-ready .activate-actions {
  opacity: 1;
  transform: translateY(0);
}

.activate-stage--chat .activate-panel:not(.activate-panel--composer) .ai-message {
  margin-bottom: 28px;
}

.activate-stage--chat .activate-panel:not(.activate-panel--composer) .ai-message::before {
  content: "";
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #fff url("../public/logo-icon.png") center / 24px no-repeat;
  border: 1px solid rgba(31, 142, 201, 0.14);
  box-shadow: 0 4px 14px -4px rgba(8, 62, 106, 0.12);
}

.activate-stage--chat .activate-panel:not(.activate-panel--composer) .ai-bubble {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.activate-stage--chat .activate-panel:not(.activate-panel--composer) .ai-message.is-visible .ai-bubble,
.activate-stage--chat .activate-panel:not(.activate-panel--composer) .ai-message.is-typing .ai-bubble {
  opacity: 1;
  transform: translateY(0);
}

.activate-stage--chat .activate-panel:not(.activate-panel--composer) .activate-field,
.activate-stage--chat .activate-panel:not(.activate-panel--composer) .activate-actions {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease 0.15s, transform 0.45s ease 0.15s;
}

.activate-stage--chat .activate-panel:not(.activate-panel--composer).is-ready .activate-field,
.activate-stage--chat .activate-panel:not(.activate-panel--composer).is-ready .activate-actions {
  opacity: 1;
  transform: translateY(0);
}

.activate-stage--chat .activate-panel.is-exiting .activate-field,
.activate-stage--chat .activate-panel.is-exiting .activate-actions,
.activate-stage--chat .activate-panel.is-exiting .ai-message {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@keyframes chatBubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chatLiveIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Form fields */

.activate-field {
  margin-bottom: 24px;
}

.activate-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.activate-field input,
.activate-field textarea,
.activate-field select {
  width: 100%;
  border: 1px solid rgba(31, 142, 201, 0.14);
  border-radius: var(--card-radius-inner);
  padding: 16px 18px;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 251, 0.94) 100%);
  color: var(--navy);
  font-size: 16px;
  outline: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 28px -14px rgba(8, 62, 106, 0.1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.activate-field input::placeholder,
.activate-field textarea::placeholder {
  color: var(--text-soft);
  opacity: 0.85;
}

.activate-field input:hover,
.activate-field textarea:hover,
.activate-field select:hover {
  border-color: rgba(72, 207, 206, 0.28);
}

.activate-field input:focus,
.activate-field textarea:focus,
.activate-field select:focus {
  border-color: rgba(72, 207, 206, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 0 0 4px rgba(72, 207, 206, 0.14),
    0 14px 36px -14px rgba(31, 142, 201, 0.14);
}

.activate-field textarea {
  min-height: 132px;
  resize: vertical;
}

.activate-field.is-invalid input,
.activate-field.is-invalid textarea,
.activate-field.is-invalid select {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.activate-field.is-invalid label {
  color: #dc2626;
}

.activate-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activate-option {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 142, 201, 0.1);
  border-radius: var(--card-radius-inner);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  text-align: left;
  width: 100%;
  color: var(--navy);
  position: relative;
}

.activate-option:hover {
  border-color: rgba(72, 207, 206, 0.35);
  background: #fff;
}

.activate-option.is-selected,
.activate-option:has(input:checked) {
  border-color: var(--orange);
  background: linear-gradient(168deg, #fff 0%, rgba(255, 145, 0, 0.06) 100%);
  box-shadow: 0 8px 24px -8px rgba(255, 145, 0, 0.22);
}

.activate-option:focus-within {
  border-color: rgba(72, 207, 206, 0.5);
  box-shadow: 0 0 0 4px rgba(72, 207, 206, 0.14);
}

.activate-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.activate-option-text {
  font-size: 15px;
  line-height: 1.5;
}

.activate-option-text small {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 2px;
  font-weight: 400;
}

.activate-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.activate-btn {
  padding: 16px 28px;
  border-radius: var(--card-radius-inner);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.activate-btn {
  display: inline-block;
  text-decoration: none;
}

.activate-btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  color: var(--navy-deep);
  box-shadow: 0 12px 28px rgba(255, 145, 0, 0.25);
}

.activate-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(255, 145, 0, 0.3);
}

.activate-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.activate-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(8, 62, 106, 0.12);
}

.activate-btn-ghost:hover {
  color: var(--navy);
  border-color: rgba(8, 62, 106, 0.2);
}

/* Recommendation */

.recommendation-card {
  background: #fff;
  border: 1px solid rgba(31, 142, 201, 0.1);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: 0 24px 60px -16px rgba(8, 62, 106, 0.12);
  margin-top: 8px;
}

.recommendation-intro {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(8, 62, 106, 0.06);
}

.recommendation-org {
  font-weight: 600;
  color: var(--navy);
}

.recommendation-modules {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recommendation-module {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(168deg, #fff 0%, var(--cream-mid) 100%);
  border: 1px solid rgba(72, 207, 206, 0.15);
  border-radius: var(--card-radius-inner);
}

.recommendation-module--selectable {
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  padding-right: 52px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  font: inherit;
  color: inherit;
}

.recommendation-module--selectable:hover {
  border-color: rgba(31, 142, 201, 0.35);
}

.recommendation-module--selectable.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 142, 201, 0.12);
}

.recommendation-module--selectable:not(.is-selected) {
  opacity: 0.78;
  border-color: rgba(8, 62, 106, 0.1);
}

.recommendation-module-check {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(8, 62, 106, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: transparent;
  background: #fff;
  flex-shrink: 0;
}

.recommendation-module--selectable.is-selected .recommendation-module-check {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.recommendation-module-content {
  flex: 1;
  min-width: 0;
}

.recommendation-module-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.recommendation-modules.has-selection-error .recommendation-module--selectable:not(.is-selected) {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.recommendation-select-hint {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.recommendation-selection-error {
  display: none;
  font-size: 13px;
  color: #dc2626;
  margin-top: 10px;
}

.recommendation-modules.has-selection-error + .recommendation-selection-error {
  display: block;
}

.recommendation-module-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--card-radius-inner);
  background: rgba(72, 207, 206, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.recommendation-module h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.recommendation-module p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.recommendation-module-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(72, 207, 206, 0.12);
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recommendation-custom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.recommendation-custom-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 8px;
}

.recommendation-module--custom {
  border-style: dashed;
  border-color: rgba(255, 145, 0, 0.25);
  background: linear-gradient(168deg, #fff 0%, #fffaf5 100%);
}

.recommendation-custom-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: var(--card-radius-inner);
  background: transparent;
  border: 1px solid rgba(8, 62, 106, 0.15);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.recommendation-custom-btn:hover {
  background: rgba(255, 145, 0, 0.08);
  border-color: rgba(255, 145, 0, 0.35);
  color: var(--navy);
}

.recommendation-rationale {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  font-style: italic;
}

.recommendation-benefit {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.55;
  margin: 6px 0 8px;
}

.recommendation-module h4 + .recommendation-benefit + p {
  font-size: 13px;
  color: var(--text-soft);
}

.recommendation-module--user-idea {
  border-color: rgba(255, 145, 0, 0.45);
  background: linear-gradient(168deg, #fff 0%, #fff8ef 100%);
}

.recommendation-user-idea {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 4px;
  padding: 12px 14px;
  border-radius: var(--card-radius-inner);
  background: rgba(255, 145, 0, 0.06);
  border-left: 3px solid rgba(255, 145, 0, 0.45);
}

.recommendation-user-idea-wrap:not(:empty) {
  margin-bottom: 24px;
}

.recommendation-ranked-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 12px;
}

.recommendation-ranked-heading[hidden] {
  display: none;
}

.activate-field-hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* Pricing */

.pricing-card {
  background: #fff;
  border: 1px solid rgba(31, 142, 201, 0.1);
  border-radius: var(--card-radius);
  padding: 36px;
  box-shadow: 0 24px 60px -16px rgba(8, 62, 106, 0.12);
}

.pricing-context {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(8, 62, 106, 0.06);
}

.pricing-line-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.pricing-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 15px;
}

.pricing-line-name {
  color: var(--navy);
  font-weight: 500;
}

.pricing-line-desc {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 400;
  margin-top: 2px;
}

.pricing-line-price {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.pricing-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 20px;
  border-top: 2px solid rgba(8, 62, 106, 0.08);
  margin-bottom: 8px;
}

.pricing-total-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.pricing-total-amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--navy);
}

.pricing-total-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-soft);
}

.pricing-note {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-top: 16px;
}

/* Payment page */

.activate-panel[data-step="payment"] {
  text-align: center;
}

.activate-panel[data-step="payment"] .payment-layout,
.activate-panel[data-step="payment"] .payment-back-actions {
  text-align: left;
}

.activate-panel[data-step="payment"] .activate-lead {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.payment-page .activate-stage--wide {
  text-align: center;
}

.payment-page .activate-stage--wide .payment-layout {
  text-align: left;
}

.payment-page .activate-stage--wide > .activate-lead {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.payment-summary {
  background: #fff;
  border: 1px solid rgba(31, 142, 201, 0.1);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: 0 24px 60px -16px rgba(8, 62, 106, 0.1);
}

.payment-summary-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.payment-summary-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.payment-context {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(8, 62, 106, 0.06);
}

.payment-line-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.payment-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  border-top: 2px solid rgba(8, 62, 106, 0.08);
  margin-bottom: 24px;
}

.payment-total-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.payment-total-amount {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--navy);
}

.payment-total-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-soft);
}

.payment-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-includes li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.payment-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--aqua);
  font-weight: 700;
}

.payment-form-card {
  background: #fff;
  border: 1px solid rgba(31, 142, 201, 0.1);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: 0 24px 60px -16px rgba(8, 62, 106, 0.12);
}

.payment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-submit {
  width: 100%;
  margin-top: 8px;
  padding: 18px 24px;
  font-size: 16px;
}

.payment-custom-only {
  grid-column: 1 / -1;
}

.payment-custom-only .payment-form-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.payment-custom-only .payment-form-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.payment-back-actions {
  max-width: 960px;
  margin: 28px auto 0;
}

.payment-layout--custom-only {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.payment-layout--simple {
  grid-template-columns: 1fr;
  max-width: 560px;
}

.payment-layout--simple .payment-form-wrap {
  grid-column: 1 / -1;
}

.stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.stripe-badge::before {
  content: "🔒";
}

.checkout-secure {
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}

/* Trial activation */

.trial-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(72, 207, 206, 0.12);
  border: 1px solid rgba(72, 207, 206, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 20px;
}

.trial-end-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: -12px 0 20px;
}

.terms-confirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
}

.terms-confirm input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--teal);
}

.terms-confirm a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.trial-confirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
}

.trial-confirm input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--teal);
}

.pricing-line-price--after-trial {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
}

/* Success */

.success-panel {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

/* Welcome / loading */

.welcome-page .welcome-main {
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 48px);
  padding: 48px 24px;
}

.welcome-shell {
  min-height: 100vh;
}

.welcome-panel {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.welcome-logo {
  display: inline-flex;
  margin-bottom: 32px;
  text-decoration: none;
}

.welcome-title {
  margin-bottom: 12px;
}

.welcome-lead {
  margin-bottom: 32px;
}

.welcome-loader {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 20px;
}

.welcome-loader span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aqua);
  animation: aiDot 1.2s infinite ease-in-out;
}

.welcome-loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.welcome-loader span:nth-child(3) {
  animation-delay: 0.3s;
}

.welcome-status {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin: 0;
}

.lfiq-email-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: var(--card-radius-inner);
  color: #991b1b;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  padding: 14px 16px;
}

.lfiq-email-notice {
  background: rgba(255, 145, 0, 0.1);
  border: 1px solid rgba(255, 145, 0, 0.28);
  border-radius: var(--card-radius-inner);
  color: #9a3412;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  padding: 14px 16px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(72, 207, 206, 0.2), rgba(31, 142, 201, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 28px;
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(72, 207, 206, 0.25); }
  50% { box-shadow: 0 0 0 16px rgba(72, 207, 206, 0); }
}

.success-panel .activate-title {
  margin-bottom: 12px;
}

.success-panel .activate-lead {
  margin-bottom: 32px;
}
