:root {
  --yellow: #ffd200;
  --yellow-dark: #e4b900;
  --ink: #111111;
  --muted: #66717f;
  --paper: #ffffff;
  --line: #e5edf4;
  --blue-gray: #dce8f2;
  --sky: #eef6ff;
  --green: #2fbf71;
  --coral: #ff7d62;
  --violet: #7f6cff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 210, 0, 0.24), transparent 24rem),
    linear-gradient(135deg, #f5f8fb 0%, var(--blue-gray) 100%);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  min-height: 100vh;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.brand-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.1vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo-mark {
  display: block;
  flex: 0 0 auto;
  width: 2.95rem;
  height: 2.95rem;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  line-height: 1;
  white-space: nowrap;
}

.parent-note {
  padding: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 1rem 3rem rgba(33, 52, 70, 0.08);
  backdrop-filter: blur(14px);
}

.parent-note {
  display: flex;
  justify-content: center;
  color: var(--muted);
  white-space: nowrap;
}

.parent-note strong {
  color: var(--ink);
}

.flow-card {
  min-height: 0;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1.25rem 4rem rgba(37, 52, 66, 0.22);
  overflow: hidden;
}

.progress-wrap {
  display: grid;
  grid-template-columns: 2.5rem 1fr 4rem;
  gap: 0.75rem;
  align-items: center;
}

.icon-button {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: #f0f4f8;
  cursor: pointer;
}

.icon-button span {
  display: block;
  translate: 0 -0.08rem;
  font-size: 2rem;
}

.icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.progress-track {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef4;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), #ffae00);
  transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-copy {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.conversation {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0 1rem;
}

.buddy-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 8rem;
}

.buddy-wrap img {
  width: min(8rem, 100%);
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 1rem 2rem rgba(228, 185, 0, 0.22);
  animation: buddyFloat 3.8s ease-in-out infinite;
}

.buddy-pulse {
  position: absolute;
  inset: 0.7rem;
  z-index: -1;
  border-radius: 999px;
  background: rgba(255, 210, 0, 0.24);
  animation: pulse 2.5s ease-in-out infinite;
}

.speech-card {
  position: relative;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.speech-card::before {
  content: "";
  position: absolute;
  left: -0.72rem;
  top: 2.15rem;
  width: 1.35rem;
  height: 1.35rem;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  rotate: 45deg;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--yellow-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

#questionLead {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.visual-area {
  min-height: 12.6rem;
  margin: 1rem 0;
}

.visual-area:empty {
  display: none;
}

.options-area {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.options-area.action-only {
  grid-template-columns: 1fr;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 5.3rem;
  padding: 1rem 3.2rem 1rem 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffdf32, var(--yellow));
  box-shadow: 0 0.55rem 1.1rem rgba(148, 128, 0, 0.16);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  text-align: left;
}

.option-card:hover,
.option-card:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0.85rem 1.8rem rgba(148, 128, 0, 0.22);
  transform: translateY(-2px);
  outline: none;
}

.option-card span {
  color: #3e3e3e;
  font-size: 0.9rem;
  line-height: 1.35;
}

.option-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.action-card {
  width: 100%;
  min-height: 5.8rem;
}

.action-card strong {
  font-size: 1.25rem;
}

.answer-card {
  min-height: 4.6rem;
  gap: 0.8rem;
}

.answer-card strong {
  display: inline;
}

.answer-emoji {
  display: grid;
  place-items: center;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 1.25rem !important;
  line-height: 1;
}

.option-card::after {
  content: "\203A";
  position: absolute;
  right: 1rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 2.2rem;
  font-weight: 300;
}

.intro-visual,
.insight-visual,
.result-visual {
  display: grid;
  min-height: 12.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fbfdff, #eef6ff);
  overflow: hidden;
}

.intro-visual {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 1rem;
}

.mini-dashboard {
  display: grid;
  gap: 0.65rem;
}

.dash-row {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0.7rem 1.2rem rgba(54, 74, 92, 0.08);
}

.dash-icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: var(--yellow);
  font-weight: 900;
}

.growth-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 10rem;
}

.orbit-ring {
  position: absolute;
  width: 8.5rem;
  height: 8.5rem;
  border: 2px dashed rgba(17, 17, 17, 0.18);
  border-radius: 999px;
  animation: spin 16s linear infinite;
}

.orbit-core {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: inset 0 -0.4rem 0 rgba(0, 0, 0, 0.06);
  font-weight: 900;
}

.insight-visual {
  align-items: center;
  padding: 1rem;
}

.lesson-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.lesson-card {
  min-height: 9.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0.7rem 1.3rem rgba(54, 74, 92, 0.08);
  animation: popIn 420ms ease both;
}

.lesson-card:nth-child(2) {
  animation-delay: 100ms;
}

.lesson-card:nth-child(3) {
  animation-delay: 200ms;
}

.lesson-card span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.lesson-card strong {
  display: block;
  margin-bottom: 0.45rem;
}

.lesson-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.focus-visual {
  display: grid;
  align-items: stretch;
}

.focus-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.focus-step {
  position: relative;
  min-height: 9.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0.7rem 1.3rem rgba(54, 74, 92, 0.08);
  animation: popIn 420ms ease both;
}

.focus-step:nth-child(2) {
  animation-delay: 100ms;
}

.focus-step:nth-child(3) {
  animation-delay: 200ms;
}

.focus-step span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.focus-step strong {
  display: block;
  margin-bottom: 0.45rem;
}

.focus-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.result-visual {
  align-items: center;
  padding: 1rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.result-pill {
  min-height: 7rem;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.result-pill span {
  color: var(--muted);
  font-size: 0.84rem;
}

.result-pill strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.1rem;
}

.lead-form {
  display: grid;
  gap: 0.85rem;
}

.lead-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

.lead-form input,
.lead-form select {
  min-height: 3.35rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0 1rem;
  background: #fff;
}

.lead-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%),
    #fff;
  background-position:
    calc(100% - 1.1rem) 50%,
    calc(100% - 0.75rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  color: var(--ink);
  font-weight: 800;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--yellow-dark);
  outline: none;
}

.phone-grid {
  display: grid;
  grid-template-columns: minmax(9rem, 0.32fr) 1fr;
  gap: 0.65rem;
}

.consent-row {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.84rem;
}

.consent-row input {
  width: 1.05rem;
  height: 1.05rem;
  min-height: auto;
  margin: 0.1rem 0 0;
  padding: 0;
}

.consent-row label {
  display: block;
  font-weight: 500;
  line-height: 1.42;
}

.text-link {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.legal-note {
  margin: -0.1rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.primary-action {
  min-height: 3.6rem;
  margin-top: 0.5rem;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 0.7rem 1.2rem rgba(148, 128, 0, 0.18);
  font-weight: 900;
  cursor: pointer;
}

.success-card {
  display: grid;
  place-items: center;
  min-height: 25rem;
  padding: 1rem;
  text-align: center;
}

.success-card strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.success-card p {
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.55;
}

@keyframes buddyFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-0.45rem) rotate(2deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.2;
  }
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(0.7rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fillMeter {
  from {
    width: 10%;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 1rem 0;
  }

  .flow-card {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 1rem, 34rem);
  }

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

  .brand-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .logo-mark {
    font-size: 1.55rem;
  }

  .brand-logo-mark {
    width: 2.75rem;
    height: 2.75rem;
  }

  .conversation {
    text-align: center;
  }

  .speech-card::before {
    display: none;
  }

  .options-area,
  .lesson-strip,
  .result-grid,
  .focus-path,
  .phone-grid,
  .intro-visual {
    grid-template-columns: 1fr;
  }

  .visual-area {
    min-height: 0;
  }

  .flow-card {
    padding: 1rem;
  }
}
