/* Custom Global Styles */

/* Ensure smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#home-view {
  padding-top: 52px;
}

#home-view::before,
#home-view::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
}

#home-view::before {
  width: 420px;
  height: 420px;
  right: -160px;
  top: 40px;
  background: rgba(168, 85, 247, 0.13);
}

#home-view::after {
  width: 360px;
  height: 360px;
  left: -140px;
  top: 360px;
  background: rgba(59, 130, 246, 0.11);
}

.landing-section {
  position: relative;
  z-index: 10;
  width: min(100%, 1040px);
  margin-top: 28px;
}

.section-kicker {
  color: #7c3aed;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-section h2 {
  margin: 8px 0 0;
  color: #1e293b;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.section-subtitle {
  max-width: 680px;
  margin: 12px auto 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.value-section {
  text-align: center;
  padding-top: 18px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.value-card {
  min-height: 188px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 46px rgba(44, 56, 102, 0.08);
  text-align: left;
}

.value-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #f5e8ff);
  color: #6366f1;
  margin-bottom: 18px;
}

.value-icon svg,
.audience-list svg,
.final-cta-button svg {
  width: 18px;
  height: 18px;
}

.history-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.history-btn.has-records .history-icon-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: gameid-history-pulse 1.25s ease-out infinite;
}

@keyframes gameid-history-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    opacity: 0.85;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    opacity: 1;
  }
}

.compensation-entry[hidden],
.ai-load-fail-actions[hidden],
.gameid-compensation-detail[hidden],
.gameid-compensation-actions[hidden] {
  display: none !important;
}

.compensation-entry {
  position: relative;
  z-index: 10;
  width: min(100%, 760px);
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(44, 56, 102, 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.compensation-entry h2 {
  margin: 6px 0 0;
  color: #172033;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: 0;
}

.compensation-entry p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

.compensation-entry-btn,
.gameid-primary-action,
.gameid-ghost-action {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}

.compensation-entry-btn,
.gameid-primary-action {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed 56%, #d946ef);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.22);
}

.gameid-ghost-action {
  color: #475569;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.compensation-entry-btn:hover,
.gameid-primary-action:hover,
.gameid-ghost-action:hover {
  transform: translateY(-1px);
}

.compensation-entry-btn svg,
.gameid-primary-action svg,
.gameid-ghost-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.ai-loading-view {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #172033;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.15), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(217, 70, 239, 0.13), transparent 34%),
    linear-gradient(135deg, #eef2fc, #f8fafc 42%, #f3e7fb);
}

.ai-loading-view.hidden {
  display: none;
}

.ai-loading-view::before,
.ai-loading-view::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(72px);
  opacity: .72;
}

.ai-loading-view::before {
  width: 360px;
  height: 360px;
  left: -120px;
  top: -100px;
  background: rgba(59, 130, 246, .14);
}

.ai-loading-view::after {
  width: 320px;
  height: 320px;
  right: -130px;
  bottom: -90px;
  background: rgba(168, 85, 247, .14);
}

.ai-loading-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  padding: 34px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(44, 56, 102, 0.12), inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: ai-loading-shell-in .7s ease both;
}

.ai-loading-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.ai-loading-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(79, 70, 229, .18);
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: #3730a3;
  font-size: 11px;
  font-weight: 900;
}

.ai-loading-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4f46e5;
  box-shadow: 0 0 12px rgba(79,70,229,.5);
  animation: ai-loading-pulse 1.4s ease infinite;
}

.ai-loading-product {
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.ai-loading-hero {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
}

.ai-loading-orb {
  width: 72px;
  height: 72px;
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.ai-loading-orb__core {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed 52%, #d946ef);
  box-shadow: 0 0 24px rgba(79,70,229,.42);
}

.ai-loading-orb__ring {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 999px;
}

.ai-loading-orb__ring--outer {
  border-top-color: rgba(37,99,235,.72);
  border-right-color: rgba(217,70,239,.4);
  animation: ai-loading-spin 2.8s linear infinite;
}

.ai-loading-orb__ring--inner {
  inset: 9px;
  border-bottom-color: #4f46e5;
  border-left-color: #d946ef;
  animation: ai-loading-spin-reverse 3.8s linear infinite;
}

.ai-loading-title {
  margin: 0 0 8px;
  color: #172033;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.03em;
}

.ai-loading-subhead {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
}

.ai-loading-overall {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 16px;
  background: rgba(248, 250, 252, .72);
  box-shadow: inset 0 1px 8px rgba(15,23,42,.03);
}

.ai-loading-overall__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ai-loading-overall__label {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
}

.ai-loading-overall__percent {
  background: linear-gradient(135deg, #2563eb, #7c3aed 52%, #d946ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.ai-loading-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  overflow: hidden;
}

.ai-loading-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #2563eb, #7c3aed 52%, #d946ef);
  transition: width .18s ease;
}

.ai-loading-stage-list {
  display: grid;
  gap: 10px;
}

.ai-loading-stage {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 14px;
  background: rgba(255,255,255,.48);
  opacity: .62;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, border-color .2s ease;
}

.ai-loading-stage.is-active {
  opacity: 1;
  background: rgba(255,255,255,.9);
  border-color: rgba(79,70,229,.28);
  transform: translateX(4px);
}

.ai-loading-stage.is-done {
  opacity: .84;
  background: rgba(241,245,249,.78);
}

.ai-loading-stage.is-failed {
  opacity: 1;
  background: rgba(255, 241, 242, .84);
  border-color: rgba(225, 29, 72, .22);
  transform: none;
}

.ai-loading-stage-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  position: relative;
}

.ai-loading-stage.is-active .ai-loading-stage-icon {
  border-color: #4f46e5;
  border-right-color: transparent;
  animation: ai-loading-spin .9s linear infinite;
}

.ai-loading-stage.is-done .ai-loading-stage-icon {
  border-color: #4f46e5;
  background: #4f46e5;
}

.ai-loading-stage.is-done .ai-loading-stage-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.ai-loading-stage.is-failed .ai-loading-stage-icon {
  border-color: #e11d48;
  background: #e11d48;
}

.ai-loading-stage.is-failed .ai-loading-stage-icon::before,
.ai-loading-stage.is-failed .ai-loading-stage-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 10px;
  height: 2px;
  border: 0;
  background: #fff;
  transform: rotate(45deg);
}

.ai-loading-stage.is-failed .ai-loading-stage-icon::after {
  transform: rotate(-45deg);
}

.ai-loading-stage-name {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.ai-loading-stage-desc {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.ai-loading-stage-status {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ai-loading-stage.is-active .ai-loading-stage-status {
  color: #3730a3;
}

.ai-loading-stage.is-failed .ai-loading-stage-status {
  color: #be123c;
}

.ai-loading-finish {
  margin-top: 22px;
  color: #94a3b8;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.ai-load-fail-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gameid-compensation-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 18px;
  display: grid;
  place-items: center;
}

.gameid-compensation-card {
  width: min(100%, 520px);
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 60px rgba(44, 56, 102, 0.12), inset 0 1px 0 rgba(255,255,255,.86);
  text-align: center;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.gameid-compensation-icon {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed 56%, #d946ef);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.24);
}

.gameid-compensation-icon svg {
  width: 32px;
  height: 32px;
}

.gameid-compensation-card h1 {
  margin: 8px 0 0;
  color: #172033;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: 0;
}

.gameid-compensation-card p:not(.section-kicker) {
  max-width: 390px;
  margin: 12px auto 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
}

.gameid-compensation-detail {
  margin: 18px auto 0;
  padding: 13px 14px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 14px;
  color: #475569;
  background: rgba(248, 250, 252, 0.84);
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}

.gameid-compensation-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.gameid-compensation-code-box {
  min-width: min(100%, 260px);
  padding: 14px 16px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  background: #f8fafc;
  text-align: left;
}

.gameid-compensation-code-box span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.gameid-compensation-code-box strong {
  display: block;
  margin-top: 7px;
  color: #172033;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}

.gameid-compensation-home {
  margin-top: 14px;
}

@keyframes ai-loading-pulse { 50% { opacity: .4; } }
@keyframes ai-loading-spin { to { transform: rotate(360deg); } }
@keyframes ai-loading-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes ai-loading-shell-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .ai-loading-view {
    padding: 0;
    align-items: stretch;
  }
  .ai-loading-shell {
    max-width: none;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,.9);
  }
  .ai-loading-hero {
    gap: 18px;
  }
  .ai-loading-orb {
    width: 64px;
    height: 64px;
  }
  .ai-loading-stage {
    grid-template-columns: 24px minmax(0,1fr);
  }
  .ai-loading-stage-status {
    grid-column: 2;
  }
  .compensation-entry {
    align-items: stretch;
    flex-direction: column;
    border-radius: 20px;
  }
  .compensation-entry-btn,
  .gameid-primary-action,
  .gameid-ghost-action {
    width: 100%;
  }
  .gameid-compensation-shell {
    padding: 18px;
  }
  .gameid-compensation-card {
    padding: 26px 20px;
  }
  .gameid-compensation-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .gameid-compensation-code-box {
    width: 100%;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  body > *:not(#result-view),
  #home-view,
  #loading-view,
  #toast-container,
  #result-view > .sticky,
  #result-view > .px-4.py-3,
  .result-actions {
    display: none !important;
  }

  #result-view {
    display: block !important;
    min-height: auto !important;
    padding-bottom: 0 !important;
  }

  #result-view .max-w-md {
    max-width: 760px !important;
  }

  #result-view .rounded-\[2rem\],
  #result-view .rounded-\[1\.5rem\],
  #result-view .rounded-2xl {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.value-card h3 {
  margin: 0 0 8px;
  color: #1e293b;
  font-size: 16px;
  font-weight: 900;
}

.value-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

.preview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 20%, rgba(168, 85, 247, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 60px rgba(44, 56, 102, 0.1);
}

.preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}

.preview-copy .section-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.preview-tags span,
.dimension-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(99, 102, 241, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.locked-report {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(49, 46, 129, 0.9)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 24px);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.locked-report::before {
  content: "SAMPLE";
  position: absolute;
  right: -18px;
  top: 4px;
  color: rgba(255,255,255,.045);
  font-size: 78px;
  font-weight: 900;
  line-height: 1;
}

.locked-head,
.locked-price,
.locked-metrics,
.locked-line,
.locked-report p {
  position: relative;
  z-index: 1;
}

.locked-head span,
.locked-price span,
.locked-metrics span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.locked-head strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
}

.locked-price {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.06);
}

.locked-price strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #bbf7d0;
  text-shadow: 0 0 28px rgba(34, 197, 94, .24);
}

.locked-price em {
  display: block;
  margin-top: 6px;
  color: #c4b5fd;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.locked-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.locked-metrics div {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
}

.locked-metrics strong {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.94);
  font-size: 16px;
  font-weight: 900;
}

.locked-line {
  height: 1px;
  margin: 18px 0 12px;
  background: rgba(255,255,255,.13);
}

.locked-report p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.masked-game-name {
  position: relative;
  display: inline-block;
  width: 5.8em;
  color: transparent;
  vertical-align: baseline;
}

.masked-game-name::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: .86em;
  transform: translateY(-43%);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.36), rgba(255,255,255,.16));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 18px rgba(255,255,255,.08);
}

.dimension-section {
  text-align: center;
  padding: 28px 24px;
  border-radius: 32px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.68);
}

.dimension-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.audience-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  padding: 28px;
  border-radius: 32px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.72);
}

.audience-list {
  display: grid;
  gap: 12px;
}

.audience-list div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
}

.audience-list svg {
  flex: 0 0 18px;
  color: #10b981;
  margin-top: 2px;
}

.final-cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(217, 70, 239, 0.78));
  color: #fff;
  box-shadow: 0 28px 70px rgba(124, 58, 237, 0.22);
}

.final-cta-section h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
}

.final-cta-section .section-kicker,
.final-cta-section p {
  color: rgba(255,255,255,.78);
}

.final-cta-section p {
  max-width: 620px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.final-cta-button {
  flex: 0 0 auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #4f46e5;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(30, 41, 59, 0.16);
}

@media (max-width: 920px) {
  .value-grid,
  .preview-section,
  .audience-section {
    grid-template-columns: 1fr;
  }

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

  .final-cta-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  #home-view {
    padding: 22px 14px 16px;
    overflow-x: hidden;
  }

  #home-view::before {
    width: 260px;
    height: 260px;
    right: -120px;
    top: 80px;
  }

  #home-view::after {
    width: 240px;
    height: 240px;
    left: -120px;
    top: 420px;
  }

  #home-view > .relative.mb-6 {
    margin-bottom: 14px;
  }

  #home-view > .relative.mb-6 > .w-16 {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  #home-view > .flex.items-center.gap-1 {
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: .08em;
  }

  #home-view > .text-center.mb-8 {
    width: 100%;
    margin-bottom: 22px;
  }

  .hero-title {
    max-width: 340px;
    margin: 0 auto 14px !important;
    font-size: 32px !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  .hero-feature-list {
    max-width: 300px;
    margin: 0 auto;
    gap: 9px 12px !important;
    font-size: 12px !important;
    line-height: 1.35;
  }

  .hero-feature-list span {
    white-space: nowrap;
  }

  .hero-feature-list svg {
    width: 14px;
    height: 14px;
  }

  .hero-feature-dot {
    display: none !important;
  }

  #home-view > .bg-white\/90 {
    width: 100%;
    padding: 18px 18px 20px !important;
    border-radius: 28px !important;
  }

  #evaluate-form {
    gap: 16px !important;
  }

  #evaluate-form > .flex {
    gap: 14px !important;
  }

  #evaluate-form label {
    margin-bottom: 8px;
    font-size: 11px;
  }

  #evaluate-form input {
    min-height: 58px;
    border-radius: 17px !important;
    font-size: 15px !important;
  }

  #evaluate-form button[type="submit"],
  #evaluate-form a {
    min-height: 56px;
    padding: 0 14px !important;
    border-radius: 17px !important;
    font-size: 15px !important;
    line-height: 1.25;
  }

  #evaluate-form + .mt-8 {
    margin-top: 18px !important;
    padding-top: 16px !important;
  }

  #evaluate-form + .mt-8 > span {
    margin-bottom: 12px !important;
  }

  #examples-container {
    gap: 10px !important;
  }

  #examples-container button {
    min-width: 58px;
    min-height: 38px;
  }

  .landing-section {
    margin-top: 24px;
  }

  .value-section {
    padding-top: 6px;
  }

  .landing-section h2 {
    font-size: 24px;
    line-height: 1.16;
    letter-spacing: 0;
  }

  .section-subtitle {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .preview-section,
  .audience-section,
  .dimension-section,
  .final-cta-section {
    padding: 18px;
    border-radius: 24px;
  }

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

/* Stable loading overlay layout */
.loading-card {
  width: min(92vw, 430px);
  min-height: 430px;
  box-sizing: border-box;
  overflow: hidden;
}

.loading-title {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  overflow: hidden;
}

.loading-hint {
  width: 100%;
  height: 44px;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loading-steps {
  min-height: 108px;
  padding-top: 2px;
}

.loading-step {
  min-height: 22px;
  width: 100%;
  box-sizing: border-box;
}

.loading-step i,
.loading-step svg {
  flex: 0 0 1rem;
}

.loading-step span {
  min-width: 0;
  line-height: 1.35;
}

/* Fullscreen Loading Overlay spinner */
.loader-circle {
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: stroke 1.5s ease-in-out infinite, spin 2s linear infinite;
}

@keyframes stroke {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -124px;
  }
}

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