:root {
  --bg-1: #fef7ed;
  --bg-2: #e0f2fe;
  --ink: #1f2937;
  --muted: #475569;
  --card: rgba(255, 255, 255, 0.92);
  --brand: #ea580c;
  --brand-2: #0ea5e9;
  --brand-3: #16a34a;
  --danger: #b91c1c;
  --shadow: 0 24px 60px rgba(30, 41, 59, 0.16);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: url("images/background.png") center center / cover no-repeat;
  display: grid;
  place-items: center;
  padding: 16px;
}

.app-shell {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 34px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  animation: rise 420ms ease;
}

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

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0c4a6e;
  background: rgba(14, 165, 233, 0.15);
  padding: 6px 10px;
  border-radius: 999px;
}

h1,
h2 {
  margin: 14px 0 10px;
  font-family: "Fraunces", serif;
  line-height: 1.1;
  text-align: center;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}

.result-subtitle {
  margin-bottom: 0;
}

.result-title {
  margin-top: 0;
}

.result-description {
  margin-top: 8px;
  text-align: center;
  white-space: pre-line;
}

p {
  margin: 10px 0 0;
  color: var(--muted);
}

.start-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.start-copy {
  margin-top: 0;
  text-align: center;
  margin: 0 2rem;
}

.start-title {
  margin-top: 0;
  margin-bottom: 0;
}

.start-cta {
  display: flex;
  justify-content: center;
}

.top-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
}

.top-row .logo-header {
  margin-bottom: 0;
  justify-self: center;
}

.top-row .orb-row {
  justify-self: start;
  align-self: start;
  width: 88px;
}

.top-row-spacer {
  width: 88px;
  justify-self: end;
  visibility: hidden;
}

.orb-row {
  display: flex;
  gap: 8px;
}

.orb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  animation: float 2.8s ease-in-out infinite;
}

.orb:nth-child(1) {
  background: #fb7185;
}

.orb:nth-child(2) {
  background: #38bdf8;
  animation-delay: 150ms;
}

.orb:nth-child(3) {
  background: #34d399;
  animation-delay: 300ms;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 130ms ease, box-shadow 130ms ease, opacity 130ms ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-main {
  color: white;
  background: linear-gradient(120deg, var(--brand), #f97316);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.25);
}

.btn-main:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-start {
  background: linear-gradient(120deg, #16a34a, #22c55e);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.3);
}

.btn-next {
  background: linear-gradient(120deg, #16a34a, #22c55e);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.3);
}

.btn-email {
  background: linear-gradient(120deg, #16a34a, #22c55e);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.3);
}

.btn-retry {
  background: linear-gradient(120deg, #dc2626, #ef4444);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.3);
}

.btn-ghost {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.12);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(120deg, #facc15, #16a34a);
  transition: width 240ms ease;
}

.options {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.option {
  color: #000000;
  text-align: left;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}

.option:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.45);
}

.option.selected {
  border-color: var(--brand-2);
  background: rgba(14, 165, 233, 0.08);
}

.actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.results-actions {
  margin-top: 0px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.results-email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.result-image-wrap {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.result-orc-image {
  width: min(260px, 72vw);
  height: auto;
  object-fit: contain;
}

.score {
  margin: 18px 0;
  font-size: clamp(1.8rem, 8vw, 3rem);
  font-weight: 700;
  color: #0f766e;
}

.results-note {
  margin-top: 8px;
  font-size: 1.05rem;
}

.answers {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.answer-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.94rem;
}

.logo-header {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.orc-logo {
  width: min(240px, 65vw);
  height: auto;
  object-fit: contain;
}

.logo-footer {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.company-logo-link {
  display: inline-flex;
  border-radius: 12px;
  outline: none;
}

.company-logo {
  width: min(220px, 60vw);
  height: auto;
  object-fit: contain;
  transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
}

.company-logo-link:hover .company-logo,
.company-logo-link:focus-visible .company-logo {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.22));
  opacity: 0.95;
}

.instagram-link {
    text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.instagram-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
  position: relative;
  top: 3px;

}

.instagram-link-text {
  text-align: center;
  line-height: 1.15;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  transform: translateY(-1px);
  background: white;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.logo-footer + .footer-url {
  margin: 0;
  display: block;
  text-align: center;
}

@media (max-width: 640px) {
  .card {
    padding: 18px;
    border-radius: 16px;
  }

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

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

  .actions .btn {
    width: 100%;
  }

  .top-row {
    align-items: start;
  }

  .top-row .orb-row,
  .top-row-spacer {
    width: 76px;
  }

  .company-logo {
    width: min(180px, 72vw);
  }

  .instagram-link {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .orc-logo {
    width: min(190px, 74vw);
  }

  .result-orc-image {
    width: min(190px, 58vw);
  }
}
