@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #191542;
  --muted: #747084;
  --line: #e5e3ec;
  --surface: #ffffff;
  --canvas: #ffffff;
  --accent: #493ce4;
  --accent-dark: #2f249f;
  --accent-soft: #f2effd;
  --warm: #fff8dc;
  --warning: #8a4c0d;
  --danger: #a53838;
  --shadow: 0 14px 42px rgba(25, 21, 66, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Lexend", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.token:focus-visible,
.chip:focus-visible,
.mode-card:focus-visible {
  outline: 3px solid rgba(73, 60, 228, 0.22);
  outline-offset: 2px;
}

#app {
  min-height: 100vh;
}

.shell {
  width: min(100% - 40px, 720px);
  margin: 0 auto;
  padding: 0 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-chevron {
  color: var(--accent);
}

.step-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.progress-track {
  height: 4px;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}

.progress-value {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 240ms ease;
}

.card {
  padding: clamp(38px, 7vw, 64px) 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  margin: 0 0 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.round-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  max-width: 680px;
  margin-bottom: 14px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(38px, 7vw, 64px);
}

h2 {
  font-size: clamp(28px, 5vw, 42px);
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.lead {
  max-width: 630px;
  margin-bottom: 28px;
  color: #454064;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
}

.scenario {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: #454064;
  font-size: 15px;
  line-height: 1.5;
}

.source-text {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f7fb;
}

.source-text > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.source-text p {
  margin: 0;
  font-family: "Lexend", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.constraint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.constraint-list li {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--warm);
  color: #6b5435;
  font-size: 12px;
  font-weight: 650;
}

.prompt {
  margin: 20px 0 24px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: clamp(21px, 3.4vw, 29px);
  line-height: 1.35;
}

.choices {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.choice,
.mini-choice,
.order-card,
.sort-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.choice {
  width: 100%;
  min-height: 58px;
  padding: 15px 17px;
  border-radius: 15px;
  text-align: left;
  line-height: 1.35;
}

.choice:hover,
.mini-choice:hover,
.order-card:hover {
  border-color: #aaa4d9;
  transform: translateY(-1px);
}

.choice.selected,
.mini-choice.selected,
.sort-toggle.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.quiz-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.quiz-facts span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.quiz-facts strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 24px;
  font-weight: 500;
}

.hero-stat {
  max-width: 100%;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.quiz-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.quiz-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.quiz-trust li span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
}

.hero-cta {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

.hero-cta .button {
  width: auto;
  min-height: 56px;
  font-size: 16px;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.interaction-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.interaction-meta span:first-child {
  color: var(--accent-dark);
  font-weight: 760;
}

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

.multi-choice {
  display: flex;
  align-items: center;
  gap: 11px;
}

.select-box {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #b9b5c8;
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.multi-choice.selected .select-box {
  border-color: var(--accent);
  background: var(--accent);
}

.token-line {
  margin: 12px 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f7fb;
  font-family: "Lexend", sans-serif;
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.8;
}

.token {
  margin: 2px 1px;
  padding: 2px 5px 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.token:hover {
  background: var(--accent-soft);
}

.token.selected {
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.match-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.match-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f7f7fb;
}

.match-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.match-content p {
  margin: 4px 0 12px;
  font-family: "Lexend", sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.chip:hover {
  border-color: #aaa4d9;
}

.chip.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.compact-section {
  margin-top: 22px;
  padding-top: 22px;
}

.dual-sentence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(22px, 3.8vw, 30px);
  line-height: 1.5;
}

.dual-group {
  display: inline-flex;
  gap: 6px;
}

.mini-choice {
  min-width: 54px;
  padding: 8px 12px;
  border-radius: 10px;
}

.text-input,
.writing-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f7fb;
  color: var(--ink);
}

.text-input {
  padding: 16px;
  font-size: 20px;
}

.writing-input {
  min-height: 150px;
  padding: 16px;
  resize: vertical;
  line-height: 1.55;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.field-meta .over {
  color: var(--danger);
  font-weight: 750;
}

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

.sort-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.sort-row p {
  margin: 0;
  line-height: 1.4;
}

.sort-actions {
  display: flex;
  gap: 5px;
}

.sort-toggle {
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
}

.order-zone {
  min-height: 66px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px dashed #b8b4c8;
  border-radius: 14px;
  background: #f7f7fb;
}

.order-zone.empty::before {
  content: "Tocca i blocchi nell’ordine corretto";
  display: block;
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

.order-card {
  display: inline-block;
  margin: 4px;
  padding: 11px 13px;
  border-radius: 11px;
  text-align: left;
}

.order-card.placed {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.order-card.placed span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.order-bank {
  display: grid;
  gap: 8px;
}

.order-bank .order-card {
  width: 100%;
  margin: 0;
}

.reset-order {
  margin-top: 8px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.mode-card {
  min-height: 154px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.mode-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.mode-card.subtle {
  background: #f7f7fb;
}

.mode-card strong,
.mode-card small {
  display: block;
}

.mode-card strong {
  margin: 14px 0 6px;
  line-height: 1.25;
}

.mode-card small {
  color: var(--muted);
  line-height: 1.35;
}

.mode-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.production-panel,
.skip-panel {
  margin: 22px 0 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f7fb;
}

.compact-input {
  min-height: 112px;
}

.switch-mode {
  margin-top: 8px;
  padding-left: 0;
}

.skip-panel p {
  margin: 7px 0 4px;
  color: var(--muted);
  line-height: 1.5;
}

.inline-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.voice-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f7fb;
  text-align: center;
}

.record-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: #cc3d3d;
}

.recording .record-dot {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.82); }
}

.voice-box audio {
  width: 100%;
  margin-top: 14px;
}

.voice-turn {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
}

.voice-turn strong {
  display: block;
  color: var(--accent-dark);
  font-size: 13px;
}

.objection {
  margin: 18px 0;
  padding: 17px;
  border-left: 3px solid #b98b50;
  border-radius: 0 12px 12px 0;
  background: var(--warm);
  text-align: left;
}

.objection span {
  color: #765b39;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.objection p {
  margin: 7px 0 0;
  font-family: "Lexend", sans-serif;
  font-size: 19px;
}

.preference-group + .preference-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.actions.end {
  justify-content: flex-end;
}

.button {
  min-height: 50px;
  padding: 12px 19px;
  border: 0;
  border-radius: 13px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: none;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.micro-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.processing {
  display: grid;
  min-height: 380px;
  place-items: center;
  text-align: center;
}

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.evidence {
  margin: 22px 0;
  padding: 18px;
  border-radius: 14px;
  background: var(--warm);
}

.evidence-label {
  margin-bottom: 7px;
  color: #765b39;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.evidence p:last-child {
  margin-bottom: 0;
}

.feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.feedback.good {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.feedback.try {
  background: #fff1dc;
  color: #75490e;
}

.profile-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.result-shell {
  width: min(100% - 48px, 980px);
}

.result-shell .card {
  padding-top: clamp(42px, 7vw, 72px);
}

.result-profile-hero h2 {
  max-width: 850px;
  font-size: clamp(36px, 6vw, 64px);
}

.reservation-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
  padding: 17px 19px;
  border-radius: 14px;
  line-height: 1.45;
}

.reservation-banner.success {
  color: #12532b;
  background: #e7f8ec;
}

.reservation-banner.cancelled {
  color: #75490e;
  background: #fff1dc;
}

.reservation-banner span {
  font-size: 13px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.comparison-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f7f7fb;
}

.comparison-card > span,
.comparison-card > strong {
  display: block;
}

.comparison-card > span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.comparison-card > strong {
  margin-bottom: 14px;
  font-size: 16px;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.dimension-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.dimension-priority {
  border-color: rgba(73, 60, 228, 0.42);
  background: var(--accent-soft);
}

.dimension-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.dimension-name {
  font-size: 14px;
  font-weight: 750;
}

.dimension-status {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.meter.unknown {
  background: repeating-linear-gradient(135deg, #e9e7f1, #e9e7f1 6px, #f7f7fb 6px, #f7f7fb 12px);
}

.profile-relevance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.profile-relevance p {
  margin: 0;
  font-weight: 650;
}

.profile-relevance > div {
  display: flex;
  gap: 8px;
}

.relevance-button,
.decline-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.relevance-button {
  min-width: 70px;
  padding: 9px 13px;
}

.relevance-button.selected,
.decline-chip.selected {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.problem-frame,
.product-preview,
.pricing-section {
  margin-top: clamp(64px, 10vw, 108px);
}

.problem-frame {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 6vw, 58px);
  border-radius: 24px;
  color: #fff;
  background: #191542;
}

.problem-frame::after {
  content: "»";
  position: absolute;
  right: 24px;
  bottom: -45px;
  color: rgba(255, 212, 71, 0.16);
  font-family: "Outfit", sans-serif;
  font-size: 190px;
  font-weight: 800;
  line-height: 1;
}

.problem-frame .eyebrow {
  color: #ffd447;
}

.problem-frame h3,
.result-section-heading h3,
.pricing-card h3 {
  margin: 0 0 16px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(31px, 5vw, 50px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.problem-frame > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.problem-frame .problem-lead {
  color: #fff;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.45;
}

.mechanism-card {
  position: relative;
  z-index: 1;
  max-width: 730px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.mechanism-card span {
  display: block;
  margin-bottom: 8px;
  color: #d2c6f3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mechanism-card p {
  margin: 0;
  color: #fff;
  line-height: 1.6;
}

.result-bridge-button {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  color: #191542;
  background: #ffd447;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.22);
}

.result-bridge-button:hover {
  background: #ffe275;
}

.result-section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.result-section-heading > p:last-child {
  color: #5d5873;
  font-size: 17px;
  line-height: 1.6;
}

.app-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-screen {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 20px 45px rgba(25, 21, 66, 0.14);
}

.app-screen-violet {
  background: #493ce4;
}

.app-screen-yellow {
  color: #191542;
  background: #ffd447;
}

.app-screen-green {
  color: #191542;
  background: #48c66f;
}

.app-screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.app-screen-top b {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.app-screen > p {
  margin: 50px 0 7px;
  opacity: 0.72;
  font-size: 12px;
}

.app-screen h4 {
  margin: 0 0 22px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(26px, 3.2vw, 35px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.app-screen-card,
.app-dialogue,
.app-progress-card {
  padding: 17px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #191542;
}

.app-screen-card small,
.app-progress-card small {
  display: block;
  margin-bottom: 8px;
  color: #747084;
  font-size: 10px;
  text-transform: uppercase;
}

.app-screen-card strong,
.app-progress-card strong {
  font-size: 14px;
  line-height: 1.45;
}

.app-dialogue > span {
  color: #493ce4;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.app-dialogue p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.app-progress-card > div {
  height: 7px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e3ec;
}

.app-progress-card i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #493ce4;
}

.app-screen-action {
  margin-top: auto;
  padding-top: 24px;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.app-screen-action.dark {
  color: #191542;
}

.pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 54px);
  padding: clamp(28px, 6vw, 55px);
  border: 1px solid #d9d5f7;
  border-radius: 24px;
  background: linear-gradient(135deg, #f7f5ff, #fff);
}

.pricing-copy > p:not(.eyebrow) {
  color: #5d5873;
  line-height: 1.65;
}

.pricing-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-copy li::before {
  content: "✓";
  margin-right: 10px;
  color: #35b65f;
  font-weight: 800;
}

.pricing-offer {
  padding: 24px;
  border-radius: 19px;
  color: #fff;
  background: #493ce4;
}

.pricing-offer > span,
.pricing-offer > strong,
.pricing-offer > small {
  display: block;
}

.pricing-offer > span {
  color: #d2c6f3;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-offer > strong {
  margin-top: 4px;
  font-family: "Outfit", sans-serif;
  font-size: 66px;
  letter-spacing: -0.06em;
}

.pricing-offer > small {
  color: rgba(255, 255, 255, 0.7);
}

.deposit-note {
  display: grid;
  gap: 5px;
  margin: 24px 0;
  padding: 15px;
  border-radius: 13px;
  color: #191542;
  background: #ffd447;
}

.deposit-note span {
  font-size: 11px;
  line-height: 1.45;
}

.pricing-offer .button {
  width: 100%;
  color: #191542;
  background: #fff;
}

.pricing-offer > p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.checkout-form {
  max-width: 650px;
  margin: 24px auto 0;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.checkout-form-heading > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checkout-form-heading h4 {
  margin: 7px 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: 29px;
  letter-spacing: -0.035em;
}

.checkout-form-heading p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.checkout-form > label:not(.consent-check) {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}

.checkout-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 15px 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.consent-check input {
  margin-top: 2px;
}

.checkout-submit {
  width: 100%;
}

.checkout-security,
.checkout-status {
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.checkout-security {
  margin: 12px 0 0;
  color: var(--muted);
}

.checkout-status {
  min-height: 17px;
  margin: 10px 0 0;
  color: var(--accent-dark);
  font-weight: 650;
}

.offer-decline {
  margin-top: 28px;
  text-align: center;
}

.offer-decline p {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 12px;
}

.offer-decline > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.decline-chip {
  padding: 8px 11px;
}

.result-actions {
  justify-content: center;
}

.section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section p,
.section li {
  color: #454064;
  line-height: 1.55;
}

.quote {
  padding: 17px;
  border-left: 3px solid #b98b50;
  border-radius: 0 12px 12px 0;
  background: var(--warm);
  color: #51432f;
  white-space: pre-wrap;
}

.signal-list,
.plan-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.signal-list li,
.plan-list li {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f7fb;
}

.plan-day {
  display: inline-block;
  min-width: 72px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.notice {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f7f7fb;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.debug {
  margin-top: 16px;
}

.debug summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

.debug pre {
  max-height: 340px;
  overflow: auto;
  padding: 14px;
  border-radius: 10px;
  background: #191542;
  color: #f7f7fb;
  font-size: 11px;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 36px, 720px);
    padding-top: 0;
  }

  .result-shell {
    width: min(100% - 28px, 980px);
  }

  .topbar {
    margin-bottom: 13px;
  }

  .card {
    padding: 36px 0;
    border-radius: 0;
  }

  .sort-row {
    grid-template-columns: 1fr;
  }

  .sort-actions {
    width: 100%;
  }

  .sort-toggle {
    flex: 1;
  }

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

  .profile-relevance {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-relevance > div {
    width: 100%;
  }

  .relevance-button {
    flex: 1;
  }

  .problem-frame {
    margin-inline: -4px;
    border-radius: 19px;
  }

  .result-bridge-button {
    width: 100%;
  }

  .app-preview-grid,
  .pricing-card {
    grid-template-columns: 1fr;
  }

  .app-preview-grid {
    gap: 12px;
  }

  .app-screen {
    min-height: 370px;
  }

  .pricing-card {
    padding: 22px;
  }

  .comparison-grid,
  .choices.compact,
  .card-grid:not(.compact-cards) {
    grid-template-columns: 1fr;
  }

  .card-grid.compact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .card-grid.compact-cards .choice {
    min-height: 54px;
    padding: 11px;
  }

  .quiz-facts {
    gap: 6px;
  }

  .quiz-facts span {
    padding: 10px 6px;
  }

  .hero-stat {
    align-items: flex-start;
    line-height: 1.35;
  }

  .quiz-trust {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .interaction-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .match-row {
    grid-template-columns: 26px 1fr;
    gap: 9px;
    padding: 13px 11px;
  }

  .match-number {
    width: 26px;
    height: 26px;
  }

  .chip {
    flex: 1 1 auto;
  }

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

  .mode-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    min-height: 0;
    padding: 14px;
  }

  .mode-card strong {
    align-self: end;
    margin: 0;
  }

  .mode-card small {
    grid-column: 2;
  }

  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .choices.compact.time-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .actions {
    align-items: stretch;
  }

  .actions .button {
    flex: 1;
  }
}

.result-note {
  margin-top: 26px;
  padding: 15px 17px;
  border-radius: 12px;
  color: var(--muted);
  background: #f7f7fb;
  font-size: 12px;
  line-height: 1.55;
}

.result-home-link {
  text-decoration: none;
}

@media (max-width: 480px) {
  .topbar {
    min-height: 68px;
  }

  .brand {
    font-size: 21px;
  }

  .step-label {
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-cta .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.round-reveal {
  max-width: 680px;
  margin: 0 auto;
}

.reveal-heading {
  max-width: 640px;
}

.language-contrast {
  display: grid;
  gap: 10px;
  margin: 32px 0 18px;
}

.language-example {
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.language-example > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.language-example p {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(21px, 3.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.language-example-before {
  background: #f7f7fa;
  color: #514d63;
}

.language-example-before mark {
  padding: 0 3px;
  background: #fff0bd;
  color: #52421e;
}

.language-example-after {
  border-color: rgba(73, 60, 228, 0.28);
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(73, 60, 228, 0.08);
}

.language-example-after > span {
  color: var(--accent);
}

.language-example-after mark {
  padding: 0 3px;
  background: #dcd7ff;
  color: var(--accent-dark);
}

.contrast-arrow {
  width: 36px;
  height: 36px;
  margin: -2px auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 21px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
  z-index: 1;
}

.reveal-takeaway {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: #fbfaff;
}

.reveal-takeaway strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 13px;
}

.reveal-takeaway p {
  margin-bottom: 8px;
  line-height: 1.55;
}

.reveal-takeaway small {
  color: var(--muted);
  line-height: 1.45;
}

.lexical-result-card {
  margin-top: 22px;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid rgba(73, 60, 228, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, #faf9ff 0%, #f2effd 100%);
}

.lexical-result-card h3 {
  margin-bottom: 8px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(22px, 3.6vw, 30px);
  letter-spacing: -0.03em;
}

.lexical-result-card > p:last-child {
  margin-bottom: 0;
  color: #454064;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .language-example {
    padding: 17px;
  }

  .language-example p {
    font-size: 21px;
  }

  .reveal-takeaway {
    padding: 16px;
  }
}
