:root {
  color-scheme: light;
  --ink: #1d2f33;
  --muted: #647271;
  --paper: #fffaf2;
  --panel: #ffffff;
  --line: #eadfd0;
  --brand: #f2685b;
  --brand-dark: #d94f44;
  --green: #1b3d3b;
  --gold: #f6c956;
  --mint: #9dccbf;
  --blue: #527b9b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

button {
  font: inherit;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

img,
svg,
canvas {
  max-width: 100%;
}

.product-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(18px, calc((100vw - 920px) / 2));
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.header-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--green);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.icon-button,
.secondary-action,
.primary-action {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.icon-button {
  width: 44px;
  background: var(--panel);
  color: var(--ink);
  font-size: 20px;
}

main {
  flex: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero,
.result-hero,
.question-card,
.share-card,
.friend-validation-panel,
.friend-check-card,
.dimension-panel,
.insight-panel,
.paywall,
.invite-panel,
.report-content,
.result-teaser,
.theory-card,
.trust-panel article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero {
  padding: clamp(28px, 7vw, 70px) clamp(20px, 7vw, 72px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  max-width: 680px;
  font-size: clamp(38px, 8vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.dimension-pills,
.theory-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dimension-pills {
  margin: 22px 0 0;
}

.dimension-pills span,
.theory-pill-row span {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff3ed;
  color: #8e362e;
  font-size: 13px;
  font-weight: 800;
}

.version-picker,
.share-modes,
.toolbar,
.metric-row,
.trust-panel {
  display: grid;
  gap: 10px;
}

.version-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 10px;
}

.version-card,
.share-mode {
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.version-card.active,
.share-mode.active {
  border-color: var(--green);
  background: #eff7f3;
}

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

.result-teaser,
.theory-card {
  margin-top: 14px;
  padding: 18px;
}

.result-teaser {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  background: #fff7e6;
}

.result-teaser p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.result-teaser div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-teaser span {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.theory-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 18px;
  align-items: center;
}

.theory-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.theory-pill-row span {
  background: #eef7f4;
  color: var(--green);
}

.primary-action {
  width: 100%;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.primary-action:hover {
  background: var(--brand-dark);
}

.primary-action.light {
  background: var(--gold);
  color: var(--green);
}

.primary-action.compact,
.secondary-action {
  width: auto;
  padding: 0 18px;
}

.secondary-action {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.secondary-action.ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.trust-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.trust-panel article {
  padding: 18px;
}

.trust-panel strong,
.trust-panel span {
  display: block;
}

.trust-panel span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.quiz-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.progress-text {
  color: var(--brand-dark);
  font-weight: 900;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfd0;
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 160ms ease;
}

.question-card {
  margin-top: 16px;
  margin-bottom: 88px;
  padding: 22px;
}

.question-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff3ed;
  color: #8e362e;
  font-size: 13px;
  font-weight: 900;
}

.question-card h3 {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.24;
}

.answer-grid {
  display: grid;
  gap: 10px;
}

.answer-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.answer-button:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  background: #f3fbf8;
}

.answer-button span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.answer-button strong {
  min-width: 0;
  font-size: 17px;
  line-height: 1.45;
}

.toolbar,
.nav-row {
  margin-top: 14px;
}

.nav-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.generating-card {
  min-height: min(620px, calc(100vh - 170px));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: clamp(28px, 8vw, 76px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  text-align: center;
}

.generating-card .eyebrow {
  color: var(--gold);
}

.generating-card h2 {
  margin: 0;
  font-size: clamp(32px, 7vw, 62px);
  line-height: 1.08;
}

.generating-card p {
  max-width: 560px;
  margin: 0;
  color: #d8ebe5;
  line-height: 1.7;
}

.generating-orbit {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 40px;
  animation: pulse-ring 1.4s ease-in-out infinite;
}

.generation-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.generation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 520px);
}

.generation-actions[hidden] {
  display: none;
}

.generating-card.is-error {
  background: #41231f;
}

.generating-card.is-error .generating-orbit {
  animation: none;
  color: #ffd1c6;
}

.generation-steps span {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.96);
  }

  50% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(0.96);
  }
}

.toolbar.split {
  grid-template-columns: 1fr 1fr;
}

.result-hero,
.share-card,
.friend-validation-panel,
.insight-panel,
.paywall,
.invite-panel {
  margin-bottom: 14px;
  padding: 20px;
}

.result-hero {
  text-align: left;
  background: var(--green);
  color: #fff;
}

.result-identity {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}

.result-identity .eyebrow {
  grid-column: 1 / -1;
  color: var(--gold);
}

.result-identity h2 {
  margin: 8px 0 6px;
  font-size: clamp(38px, 8vw, 70px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.type-badge {
  display: inline-flex;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.type-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
  font-size: 32px;
  overflow: hidden;
}

.type-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-icon img + .type-icon-fallback {
  display: none;
}

.type-icon-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.result-code {
  margin: 0;
  color: var(--gold);
  font-weight: 900;
}

.tagline {
  margin: 14px 0;
  padding: 14px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.55;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.result-tags span {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-summary article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.result-summary span,
.result-summary strong {
  display: block;
}

.result-summary span {
  margin-bottom: 6px;
  color: #d8ebe5;
  font-size: 13px;
  font-weight: 800;
}

.result-summary strong {
  line-height: 1.55;
}

.metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.hero-share-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 10px;
  margin: 12px 0 16px;
}

.hero-share-actions button {
  min-width: 0;
}

.metric-row div {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row span {
  color: #d8ebe5;
  font-size: 13px;
}

.dimension-panel {
  margin-bottom: 14px;
  padding: 20px;
}

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

.dimension-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

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

.dimension-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dimension-card strong {
  margin: 6px 0 10px;
}

.bar-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #efe5d7;
}

.bar-pair div:first-child {
  justify-self: end;
  background: var(--brand);
}

.bar-pair div:last-child {
  background: var(--mint);
}

.dimension-card small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.share-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background-color: var(--green);
  background-image: var(--share-card-image, var(--share-card-fallback));
  background-position: center;
  background-size: cover;
  color: #fff;
}

.share-card-with-controls {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: stretch;
}

.share-card[data-share-mode="public"] {
  --share-card-fallback: radial-gradient(circle at 18% 18%, rgba(255, 211, 110, 0.55), transparent 34%),
    linear-gradient(135deg, #e85251, #1f675b);
}

.share-card[data-share-mode="private"] {
  --share-card-fallback: radial-gradient(circle at 78% 20%, rgba(255, 139, 167, 0.58), transparent 36%),
    linear-gradient(145deg, #5547bf, #48ccbd);
}

.share-card[data-share-mode="anonymous"] {
  --share-card-fallback: radial-gradient(circle at 50% 18%, rgba(252, 181, 92, 0.5), transparent 35%),
    linear-gradient(145deg, #20515a, #81d8bd);
}

.share-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 51, 47, 0.2), rgba(18, 51, 47, 0.66));
  content: "";
}

.share-card > * {
  position: relative;
  z-index: 1;
}

.share-card-copy {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: flex-end;
}

.share-card strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.share-card small {
  color: #d8ebe5;
}

.share-card-controls {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(18, 51, 47, 0.18);
}

.share-card-controls .eyebrow {
  color: var(--brand-dark);
}

.share-modes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.share-preview,
.friend-validation-panel p,
.friend-validation-card p,
.friend-check-card p,
.insight-item p,
.paywall p,
.invite-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.share-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.share-preview-card strong,
.share-preview-card span {
  display: block;
}

.share-preview-card span {
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.share-preview-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.share-qr {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.share-qr img {
  width: 116px;
  height: 116px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.share-qr small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.friend-validation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.8fr) minmax(170px, auto);
  gap: 14px;
  align-items: center;
  background: #fffdf8;
}

.friend-validation-panel h3 {
  margin-bottom: 8px;
}

.friend-validation-panel small {
  display: block;
  color: var(--blue);
  overflow-wrap: anywhere;
}

.friend-validation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7ef;
}

.friend-validation-card strong {
  display: block;
  margin-bottom: 6px;
}

.friend-validation-card img {
  width: 86px;
  height: 86px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.friend-validation-actions {
  display: grid;
  gap: 10px;
}

.friend-check-card {
  padding: clamp(22px, 5vw, 42px);
}

.friend-check-card h1 {
  margin-bottom: 10px;
  font-size: clamp(36px, 7vw, 58px);
}

.friend-question-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.friend-question {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.friend-question legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--green);
  font-weight: 900;
}

.friend-question button {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.friend-question button.active {
  border-color: var(--green);
  background: #eef7f4;
  color: var(--green);
}

.friend-check-result:not(:empty) {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--mint);
  border-radius: 8px;
  background: #eef7f4;
  color: var(--green);
  line-height: 1.6;
}

.premium-paywall {
  border-color: #f0b466;
  background: linear-gradient(135deg, #fff8e8, #fffdf8 58%, #fff1ec);
  box-shadow: 0 10px 28px rgba(232, 82, 81, 0.12);
}

.premium-paywall h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.premium-paywall .primary-action {
  min-width: 210px;
  box-shadow: 0 10px 20px rgba(232, 82, 81, 0.22);
}

.premium-unlocks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.premium-unlocks li {
  padding: 7px 10px;
  border: 1px solid #f5d1bd;
  border-radius: 8px;
  background: #fff5ef;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.ad-slot {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #d8cabc;
  border-radius: 8px;
  background: #fffaf1;
  color: var(--muted);
}

.ad-slot[hidden] {
  display: none;
}

.ad-slot span,
.ad-slot strong {
  display: block;
}

.ad-slot span {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.ad-slot strong {
  color: var(--ink);
}

.ad-slot p {
  margin: 6px 0 0;
  line-height: 1.6;
}

.ad-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.ad-link:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.insight-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.paywall,
.invite-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.payment-status {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.payment-status strong,
.payment-status span {
  display: block;
}

.payment-status strong {
  color: var(--ink);
}

.payment-status span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.payment-status.is-confirming,
.payment-status.is-creating {
  border-color: #f2c26f;
  background: #fff7e6;
}

.payment-status.is-paid {
  border-color: var(--mint);
  background: #eef7f4;
}

.payment-status.is-error,
.payment-status.is-unavailable {
  border-color: #f7c5bb;
  background: #fff4f0;
}

.payment-choice-panel {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #f0b466;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(232, 82, 81, 0.1);
}

.payment-choice-panel[hidden] {
  display: none;
}

.payment-choice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.payment-choice-head h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.payment-choice-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.payment-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-method-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas:
    "icon title"
    "icon copy";
  gap: 4px 12px;
  min-height: 92px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.payment-method-card:not(:disabled):hover {
  border-color: var(--green);
  background: #f2faf7;
}

.payment-method-card:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.payment-method-icon {
  grid-area: icon;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--gold);
  font-weight: 900;
}

.payment-method-card[data-provider="wechat_pay"] .payment-method-icon {
  background: #1f7a45;
  color: #ffffff;
}

.payment-method-card strong {
  grid-area: title;
  font-size: 18px;
}

.payment-method-card small {
  grid-area: copy;
  color: var(--muted);
  line-height: 1.5;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.invite-qr {
  width: 128px;
  flex: 0 0 128px;
  text-align: center;
}

.invite-qr img {
  width: 112px;
  height: 112px;
  display: block;
  margin: 0 auto 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.invite-qr small,
.invite-status {
  color: var(--muted);
  line-height: 1.45;
}

.invite-status {
  margin-top: 8px;
  font-weight: 700;
}

.invite-panel small {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  overflow-wrap: anywhere;
}

.report-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.report-section {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-section.danger {
  background: #fff4f0;
  border-color: #f7c5bb;
}

.viral-hero,
.quote-card,
.manual-card,
.reference-section {
  margin-bottom: 14px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.viral-hero {
  background: var(--green);
  color: #fff;
}

.viral-hero .eyebrow {
  color: var(--gold);
}

.viral-title-lockup {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 4px 0 8px;
}

.viral-title-lockup h2 {
  margin: 0;
}

.viral-type-code {
  display: inline-flex;
  min-width: 86px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 250, 242, 0.72);
  border-radius: 8px;
  background: var(--gold);
  color: var(--green);
  font-size: 26px;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.viral-stamp {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--green);
  font-weight: 900;
}

.quote-card {
  background: #fff7e6;
}

.rich-report-intro,
.rich-module,
.visual-card {
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rich-report-intro {
  border-color: #f0b466;
  background:
    linear-gradient(135deg, rgba(246, 201, 86, 0.22), rgba(154, 204, 191, 0.18)),
    #fffdf8;
}

.rich-report-intro h3,
.rich-module h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.28;
}

.visual-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.visual-card {
  min-height: 158px;
  margin: 0;
  background: var(--green);
  color: #fffaf2;
}

.visual-card:nth-child(2n) {
  background: #fff4e9;
  color: var(--ink);
}

.visual-card:nth-child(3n) {
  background: #ecf7f2;
  color: var(--ink);
}

.visual-card span,
.rich-card span,
.rich-step span,
.rich-script-grid span,
.rich-day-grid span,
.rich-split span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.visual-card:first-child span {
  color: var(--gold);
}

.visual-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.25;
}

.visual-card p {
  color: inherit;
}

.rich-module {
  position: relative;
  overflow: hidden;
}

.rich-module::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--brand);
  content: "";
}

.rich-module-quote_strike {
  background: #183f3c;
  color: #fffaf2;
}

.rich-module-quote_strike p,
.rich-module-quote_strike .eyebrow {
  color: #fffaf2;
}

.rich-module p + p {
  margin-top: 10px;
}

.rich-lead {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.55;
}

.rich-module-quote_strike .rich-lead {
  color: #fffaf2;
}

.rich-quote {
  margin: 0 0 14px;
  padding: 16px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: rgba(246, 201, 86, 0.18);
  color: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
}

.rich-card-grid,
.rich-step-map,
.rich-script-grid,
.rich-day-grid,
.rich-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.rich-card,
.rich-step,
.rich-script-grid article,
.rich-day-grid article,
.rich-split article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.rich-step {
  border-color: #d6ebe2;
  background: #f2fbf7;
}

.rich-step > span {
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}

.rich-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.rich-list li {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.55;
}

.rich-split {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rich-split-count-1 {
  grid-template-columns: 1fr;
}

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

.rich-split-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rich-script-grid article {
  border-color: #f4c9c0;
  background: #fff7f3;
}

.rich-script-grid small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.rich-day-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rich-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.rich-pill-row span {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff4cc;
  color: var(--green);
  font-weight: 900;
}

.rich-callout {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #eef7f4;
  color: var(--green);
  font-weight: 900;
}

.quote-card span,
.manual-card span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.manual-line,
.practice-sentence {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #eef7f4;
  color: var(--green);
  font-weight: 800;
}

.report-metrics,
.script-grid,
.reference-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-metric,
.script-grid article,
.reference-list a {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.reference-list a {
  color: inherit;
  text-decoration: none;
}

.reference-list span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.product-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  width: min(920px, calc(100% - 36px));
  margin: 10px auto 0;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.product-footer strong,
.product-footer span {
  display: block;
}

.product-footer strong {
  color: var(--ink);
}

.product-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.product-footer a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.legal-page {
  max-width: 820px;
}

.legal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.legal-actions a {
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
}

.legal-hero,
.legal-section {
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.legal-hero {
  background: var(--green);
  color: #fff;
}

.legal-hero .eyebrow {
  color: var(--gold);
}

.legal-hero h1 {
  font-size: clamp(34px, 7vw, 58px);
}

.legal-hero p {
  max-width: 680px;
  color: #d8ebe5;
  line-height: 1.7;
}

.legal-section h2 {
  font-size: 22px;
}

.legal-section p {
  color: var(--muted);
  line-height: 1.8;
}

.legal-section a {
  color: var(--green);
  font-weight: 800;
}

.legal-notice {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #e5bf5f;
  border-radius: 8px;
  background: #fff4cc;
}

.legal-notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 15px;
}

.legal-notice p {
  margin: 0;
  color: #5f5537;
  line-height: 1.7;
}

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

.legal-link-grid a {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.support-card p + p {
  margin-top: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .product-header {
    align-items: flex-start;
    gap: 12px;
  }

  .header-actions {
    flex: 1;
    justify-content: flex-end;
    gap: 6px;
  }

  .header-link {
    max-width: 72px;
    padding: 0 9px;
    text-align: center;
    line-height: 1.2;
  }

  main {
    padding: 12px;
  }

  .product-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand strong {
    max-width: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .version-picker,
  .trust-panel,
  .payment-method-list,
  .share-card-with-controls,
  .friend-validation-panel,
  .friend-validation-card,
  .friend-question,
  .share-modes,
  .share-preview-card,
  .dimension-result,
  .metric-row,
  .result-summary,
  .toolbar.split,
  .theory-card,
  .visual-card-grid,
  .rich-card-grid,
  .rich-step-map,
  .rich-script-grid,
  .rich-day-grid,
  .rich-split,
  .report-metrics,
  .script-grid,
  .reference-list {
    grid-template-columns: 1fr;
  }

  .result-teaser {
    display: block;
  }

  .result-teaser div {
    margin-top: 10px;
  }

  .paywall,
  .payment-choice-head,
  .invite-panel,
  .friend-validation-actions,
  .product-footer {
    display: block;
  }

  .invite-qr {
    width: 100%;
    margin-top: 12px;
    text-align: left;
  }

  .invite-qr img {
    margin-left: 0;
  }

  .paywall button,
  .payment-choice-head button,
  .invite-panel button {
    width: 100%;
    margin-top: 8px;
  }

  .invite-actions {
    display: block;
  }

  .friend-validation-card img {
    margin-top: 10px;
  }

  .nav-row {
    display: grid;
  }

  .nav-row button,
  .legal-actions .secondary-action {
    width: 100%;
  }

  .legal-actions {
    display: grid;
  }

  .legal-link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-footer nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .hero {
    padding: 28px 18px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .question-card {
    padding: 18px;
    margin-bottom: 24px;
  }

  .answer-button {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 62px;
    padding: 12px;
  }

  .answer-button span {
    width: 34px;
    height: 34px;
  }

  .result-hero,
  .share-card,
  .friend-validation-panel,
  .friend-check-card,
  .dimension-panel,
  .insight-panel,
  .paywall,
  .payment-choice-panel,
  .invite-panel,
  .rich-report-intro,
  .rich-module,
  .visual-card {
    padding: 16px;
  }

  .share-card-copy {
    min-height: 180px;
  }

  .share-card-controls {
    padding: 14px;
  }

  .share-qr {
    justify-items: start;
  }

  .result-identity {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .type-icon {
    width: 54px;
    height: 54px;
    font-size: 27px;
  }

  .result-identity h2 {
    font-size: 36px;
  }

  .tagline {
    font-size: 17px;
    line-height: 1.45;
  }

  .hero-share-actions {
    grid-template-columns: 1fr 0.82fr;
  }

  .hero-share-actions .primary-action,
  .hero-share-actions .secondary-action {
    padding: 0 10px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .product-shell {
    width: 100%;
    overflow-x: hidden;
  }

  main,
  .product-footer {
    width: 100%;
  }

  .version-card,
  .share-mode,
  .primary-action,
  .secondary-action,
  .answer-button {
    max-width: 100%;
  }
}
