/* Free Report Page Styles */

.report-container {
  min-height: 100vh;
  padding-top: 90px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 22px;
  height: 90px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-logo {
  height: 70px;
  width: auto;
}

/* Step Sections */
.step-section {
  display: none;
  min-height: calc(100vh - 90px);
  padding: 80px 22px;
  align-items: center;
  justify-content: center;
}

.step-section.active {
  display: flex;
}

.step-content {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.step-content-wide {
  max-width: 1024px;
}

.step-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  text-align: center;
}

.step-subtitle {
  font-size: 19px;
  line-height: 1.4;
  color: #86868b;
  margin-bottom: 48px;
  text-align: center;
}

/* Loading Hero Section */
.loading-hero {
  text-align: center;
  margin-bottom: 32px;
}

.step-badge {
  display: inline-block;
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.loading-hero .step-title {
  font-size: clamp(32px, 4vw, 40px);
  margin-bottom: 16px;
}

.loading-hero .step-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: #86868b;
  margin-bottom: 0;
}

/* Execution Card */
.execution-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.execution-title {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 32px;
}

/* Forms */
.report-form {
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  font-size: 17px;
  border: 2px solid #d2d2d7;
  border-radius: 12px;
  background: white;
  color: #1d1d1f;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #2a7eef;
  box-shadow: 0 0 0 4px rgba(42, 126, 239, 0.1);
}

.form-input.error {
  border-color: #ff3b30;
}

.error-message {
  font-size: 14px;
  color: #ff3b30;
  margin-top: 8px;
  display: none;
}

.error-message.visible {
  display: block;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 500;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: #007aff;
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: #0051d5;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 122, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #d2d2d7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 12px 20px;
}

.btn-secondary:hover {
  background: #e8e8ed;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.flex-1 {
  flex: 1;
}

/* AI Platforms */
.ai-platforms {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.platform-logo-container {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.platform-logo {
  width: 64px;
  height: 64px;
}

.platform-item span {
  font-size: 14px;
  font-weight: 500;
  color: #86868b;
}

/* Prompts List */
.prompts-list {
  max-width: 672px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.prompt-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f5f5f7;
  border-radius: 20px;
  text-align: left;
}

.prompt-number {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #007aff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 11px;
  flex-shrink: 0;
}

.prompt-text {
  font-size: 13px;
  color: #1d1d1f;
  line-height: 1.3;
}

/* Progress Bar */
.progress-container {
  max-width: 448px;
  margin: 0 auto;
}

.progress-bar {
  height: 12px;
  background: #e5e5ea;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: #007aff;
  border-radius: 6px;
  transition: width 0.3s ease-out;
  width: 10%;
}

.progress-text {
  text-align: center;
  font-size: 14px;
  color: #86868b;
}

/* Report Content */
.report-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 22px;
}

.report-header {
  text-align: center;
  margin-bottom: 64px;
}

.report-title {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 16px;
}

.report-subtitle {
  font-size: 19px;
  color: #86868b;
  margin-bottom: 24px;
}

/* Share Widget Wrapper */
.share-widget-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.share-widget-wrapper .share-widget {
  width: 600px;
}

@media (max-width: 768px) {
  .share-widget-wrapper .share-widget {
    width: 100%;
  }
}

/* Share Link Widget */
.share-widget {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.share-widget-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #86868b;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.share-widget-label svg {
  opacity: 0.7;
}

.share-link-container {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f5f5f7;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.share-link-container:focus-within {
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.share-link-input {
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #1d1d1f;
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
  letter-spacing: -0.01em;
  min-width: 240px;
  max-width: 320px;
  outline: none;
}

.share-link-input::selection {
  background: rgba(0, 122, 255, 0.2);
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  background: linear-gradient(180deg, #0085ff 0%, #007aff 100%);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  white-space: nowrap;
  min-width: 100px;
}

.btn-copy-link:hover {
  background: linear-gradient(180deg, #0077e6 0%, #006adf 100%);
  transform: scale(1.02);
}

.btn-copy-link:active {
  transform: scale(0.98);
}

.btn-copy-link.copied {
  background: linear-gradient(180deg, #34d058 0%, #34c759 100%);
}

.btn-copy-link svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-copy-link.copied svg {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .share-widget {
    padding: 16px 20px;
    width: 100%;
  }

  .share-link-container {
    width: 100%;
    flex-direction: column;
    border-radius: 12px;
  }

  .share-link-input {
    min-width: unset;
    max-width: unset;
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
  }

  .btn-copy-link {
    width: 100%;
    padding: 14px 20px;
    border-radius: 0 0 11px 11px;
  }
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.metric-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.metric-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: #86868b;
  margin: 0;
}

.metric-value {
  margin-bottom: 12px;
}

.value-large {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1;
}

.value-large.competitor-name {
  font-size: 32px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.value-max {
  font-size: 24px;
  color: #86868b;
  margin-left: 4px;
}

.metric-description {
  font-size: 14px;
  color: #86868b;
  line-height: 1.5;
  margin: 0;
}

.info-tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.info-icon {
  color: #86868b;
  cursor: help;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.info-icon:hover {
  color: #1d1d1f;
}

.info-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  font-size: 13px;
  font-weight: 400;
  border-radius: 8px;
  white-space: normal;
  max-width: 280px;
  text-align: center;
  z-index: 1000;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-tooltip-container:hover .info-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Mobile: show tooltip on tap */
@media (hover: none) and (pointer: coarse) {
  .info-tooltip-container {
    cursor: pointer;
  }

  .info-tooltip-container:active .info-tooltip {
    visibility: visible;
    opacity: 1;
  }
}


/* Report Sections */
.report-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 24px;
}

/* Platform Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.platform-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.platform-card h4 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 16px;
}

.platform-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.platform-label {
  font-size: 14px;
  color: #86868b;
}

.platform-value {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
}

/* Prompts Table */
.prompts-table {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.prompt-row {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f7;
}

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

.prompt-col {
  font-size: 15px;
}

.prompt-col.text {
  font-weight: 500;
  color: #1d1d1f;
}

.prompt-col.rank {
  color: #2a7eef;
  font-weight: 600;
}

.prompt-col.mention {
  color: #86868b;
}

/* Conversion CTA */
.conversion-cta {
  background: linear-gradient(135deg, #2a7eef 0%, #007aff 100%);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  color: white;
  margin-top: 64px;
}

.conversion-cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.conversion-cta>p {
  font-size: 19px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.cta-divider {
  color: white;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  opacity: 0.9;
  max-width: 480px;
  text-align: center;
}

.cta-note {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 0;
  margin-bottom: 0;
}

.conversion-cta .btn-primary {
  background: white;
  color: #007aff;
  width: auto;
  display: inline-flex;
  padding: 18px 48px;
  text-decoration: none;
  font-weight: 600;
}

.conversion-cta .btn-primary:hover {
  background: #f5f5f7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.conversion-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: auto;
  padding: 18px 48px;
  text-decoration: none;
  font-weight: 600;
}

.conversion-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-logo {
    height: 50px;
  }

  .report-form {
    padding: 32px 24px;
  }

  .execution-card {
    padding: 24px;
  }

  .step-title {
    font-size: 32px;
  }

  .loading-hero .step-title {
    font-size: 28px;
  }

  .loading-hero .step-subtitle {
    font-size: 16px;
  }

  .execution-title {
    font-size: 20px;
  }

  .ai-platforms {
    gap: 32px;
  }

  .platform-logo-container {
    width: 80px;
    height: 80px;
  }

  .platform-logo {
    width: 48px;
    height: 48px;
  }

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

  .prompt-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .value-large {
    font-size: 40px;
  }

  .value-large.competitor-name {
    font-size: 28px;
  }

  .info-tooltip {
    max-width: 200px;
    font-size: 12px;
    left: auto;
    right: 0;
    transform: none;
  }

  .conversion-cta {
    padding: 48px 24px;
  }

  .conversion-cta h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .step-section {
    padding: 40px 16px;
  }

  .report-form {
    padding: 24px 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-secondary {
    width: 100%;
  }
}

/* Choices.js Custom Styles */
.choices.country-select {
  margin-bottom: 0;
}

.choices__inner {
  min-height: 52px;
  padding: 12px 20px;
  font-size: 17px;
  border: 2px solid #d2d2d7;
  border-radius: 12px;
  background: white;
  transition: all 0.2s ease;
}

.choices__inner:hover {
  border-color: #b8b8bd;
}

.choices.is-focused .choices__inner {
  border-color: #2a7eef;
  box-shadow: 0 0 0 4px rgba(42, 126, 239, 0.1);
}

.choices.country-select,
.choices__inner {
  border-radius: 12px !important;
}

.choices__list--dropdown {
  border: 2px solid #2a7eef;
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-top: -2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.choices__list--dropdown .choices__item {
  padding: 12px 20px;
  font-size: 16px;
  color: #1d1d1f;
  transition: all 0.15s ease;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: #f5f5f7;
  color: #1d1d1f;
}

.choices__list--dropdown .choices__item--selectable:active {
  background: #e8e8ed;
}

.choices__input {
  font-size: 16px;
  padding: 4px 0;
  background: transparent;
}

.choices__input::placeholder {
  color: #86868b;
  opacity: 1;
}

.choices__placeholder {
  color: #86868b;
  opacity: 1;
}

.choices[data-type*='select-one'] .choices__input {
  padding: 0;
  margin-bottom: 0;
}

.choices__list--single {
  padding: 0;
}

.choices[data-type*='select-one'] .choices__inner {
  padding-bottom: 12px;
}

.choices[data-type*='select-one']::after {
  border-color: #86868b transparent transparent;
  border-style: solid;
  border-width: 6px 5px 0;
  right: 20px;
  top: 50%;
  margin-top: -3px;
  transition: transform 0.2s ease;
}

.choices.is-open[data-type*='select-one']::after {
  transform: rotate(180deg);
  margin-top: -9px;
}

/* Error state for Choices.js */
.form-input.error+.choices.country-select .choices__inner {
  border-color: #ff3b30;
}

/* No results text */
.choices__item--choice.has-no-results {
  color: #86868b;
  font-style: italic;
  padding: 20px;
  text-align: center;
}

/* Mobile improvements */
@media (max-width: 768px) {
  .choices__list--dropdown .choices__item {
    padding: 14px 16px;
    font-size: 16px;
  }

  .choices__inner {
    min-height: 52px;
    font-size: 16px;
  }
}

/* New Analysis Visuals */
.analysis-visuals {
  margin-bottom: 32px;
}

.platform-scanner {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.scanner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  transition: all 0.3s ease;
  opacity: 0.5;
  background: none;
  border: none;
  box-shadow: none;
}

.scanner-item.active {
  background-color: white;
  opacity: 1;
  background: none;
  border: none;
  box-shadow: none;
}

.platform-logo-large {
  width: 120px;
  height: 120px;
}

.scan-status {
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
}

.scanner-item.active .scan-status {
  color: #007aff;
}

.analysis-log {
  height: 120px;
  overflow-y: auto;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 16px;
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
  font-size: 13px;
  color: #1d1d1f;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.log-item {
  display: flex;
  gap: 8px;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.log-icon {
  color: #007aff;
}

.log-text {
  opacity: 0.8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success Badge */
.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e3f9e5;
  color: #34c759;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Security Note */
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: #86868b;
}

/* Hide back button in new flow */
#back-to-domain {
  display: none;
}

/* Enhanced Unlock Step Styles */
#step-email .step-content {
  max-width: 520px;
  text-align: center;
}

#step-email .report-form {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: left;
  margin-top: 32px;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#step-email .step-title {
  font-size: 32px;
  margin-bottom: 12px;
}

#step-email .step-subtitle {
  font-size: 17px;
  color: #6e6e73;
  margin-bottom: 0;
}

.success-badge {
  background: #e3f9e5;
  color: #1d1d1f;
  border: 1px solid #ccebcc;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  width: 180px;
  margin: 10px auto;
  text-align: center;
}

.success-badge svg {
  color: #34c759;
}

/* Form Polish */
.form-group label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #86868b;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-input {
  background: #f5f5f7;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.form-input:focus {
  background: white;
  border-color: #007aff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.security-note {
  background: #f5f5f7;
  padding: 12px;
  border-radius: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
  color: #6e6e73;
  font-weight: 500;
}

/* Button Polish */
.btn-primary {
  height: 56px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35);
  transform: translateY(-1px);
}