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

:root {
  --bg: #090a1a;
  --bg-darker: #05060f;
  --bg-accent: #11142d;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-elevated: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-muted: #abb1d1;
  --accent-primary: #6ee7d7;
  --accent-secondary: #a389f4;
  --accent-tertiary: #f472b6;
  --accent-2: #7de7d8;
  --danger: #ff8e9f;
  --light-surface: #f4f7ff;
  --light-text: #18233f;
  --light-muted: #56627f;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg-darker);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(110, 231, 215, 0.1), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(163, 137, 244, 0.1), transparent 40%);
  line-height: 1.6;
}

.card-surface {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
}

.eyebrow,
.section-kicker,
.report-label {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--accent-primary);
  margin: 0 0 1rem;
}

.button-primary,
.button-secondary,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-primary), #4fd1c5);
  color: var(--bg-darker);
  box-shadow: 0 10px 20px -5px rgba(110, 231, 215, 0.3);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(110, 231, 215, 0.5);
}

.button-secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.button-secondary:hover {
  background: var(--surface-elevated);
  transform: translateY(-2px);
}

.button-light {
  background: #ffffff;
  color: var(--bg-darker);
}

.button-light:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.button-answer {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.button-answer:hover {
  background: var(--surface-elevated);
  transform: translateY(-2px);
}

.button-answer.selected {
  background: var(--accent-primary);
  color: var(--bg-darker);
  border-color: var(--accent-primary);
}

.button-answer:disabled,
.button-primary:disabled,
.button-secondary:disabled,
.button-paypal:disabled,
.button-light:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.button-paypal {
  width: 100%;
  padding: 14px 18px;
  background: #ffc439;
  color: #1d1d1d;
  font-weight: 700;
  border: 0;
  border-radius: 14px;
}

.full-width {
  width: 100%;
}

.inline-button {
  min-width: 138px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.page-landing,
.page-assessment {
  background: var(--bg-darker);
  background-image:
    radial-gradient(circle at top left, rgba(110, 231, 215, 0.06), transparent 30%),
    radial-gradient(circle at bottom right, rgba(163, 137, 244, 0.08), transparent 34%);
}

.landing-shell,
.assessment-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.app-hero {
  position: relative;
  background: var(--bg-accent);
  border-radius: var(--border-radius-lg);
  margin-top: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.hero-background-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(110, 231, 215, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.app-hero-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  padding: 5rem 4rem;
  align-items: center;
}

.app-hero-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 1.08;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 45ch;
  margin: 1.25rem 0 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.hero-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.premium-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.image-overlay-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-accent), transparent 40%);
}

.importance-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  padding: 6rem 4rem;
  background: var(--bg-darker);
}

.importance-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
  max-width: 11ch;
}

.importance-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 58ch;
}

.importance-list {
  display: grid;
  gap: 2rem;
}

.importance-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.importance-item strong {
  display: block;
  margin-bottom: 0.35rem;
}

.importance-item p,
.expectation-grid p,
.legal-copy p {
  margin: 0;
  color: var(--text-muted);
}

.benefit-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon.aqua {
  background: linear-gradient(180deg, #7a7cff, #6ce5d7);
}

.benefit-icon.violet {
  background: linear-gradient(180deg, #b46cff, #7a7cff);
}

.benefit-icon.rose {
  background: linear-gradient(180deg, #ff7bc2, #b46cff);
}

.importance-side {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(99, 234, 217, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(33, 27, 78, 0.98), rgba(16, 20, 42, 0.98));
}

.expectation-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.expectation-grid strong {
  display: block;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(247, 249, 255, 0.82);
  text-decoration: none;
}

.compact-links {
  justify-content: center;
  font-size: 0.95rem;
}

.assessment-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-link,
.back-link {
  color: var(--text);
  text-decoration: none;
}

.brand-link {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.back-link {
  color: rgba(247, 249, 255, 0.78);
}

/* --- Overhauled Assessment Layout --- */
.assessment-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

.assessment-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}

.assessment-aside-v2 {
  position: sticky;
  top: 2rem;
  padding: 2.5rem;
  background: var(--bg-accent);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.aside-content h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.1;
  margin: 1rem 0;
  font-weight: 800;
}

.aside-copy {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.step {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.4;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active {
  opacity: 1;
}

.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.step.active .step-num {
  background: var(--accent-primary);
  color: var(--bg-darker);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(110, 231, 215, 0.3);
}

.step-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.assessment-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
}

.stage-panel,
.question-card-v2 {
  padding: 3rem;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(10px);
}

.stage-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.question-head-v2 {
  margin-bottom: 2.5rem;
}

.question-title-v2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 0;
}

.answers-grid-v2 {
  display: grid;
  gap: 1rem;
}

/* --- Report Overhaul Styles --- */
.report-container-v2 {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  animation: fadeIn 0.8s ease-out;
}

.report-header-v2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.report-hero-v2 h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.report-summary-v2 {
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.score-badge-v2 {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--surface-elevated);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
}

.score-circle-v2 {
  position: relative;
  width: clamp(64px, 18vw, 80px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-circle-v2 svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-value-v2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.risk-info-v2 span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.risk-info-v2 strong {
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.report-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.report-card-v2 {
  padding: 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-title-v2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.intensity-bars-v2 {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.intensity-item-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.intensity-label-v2 {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.category-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.info-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(240px, 72vw);
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(10, 12, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  color: #f7f9ff;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 8;
}

.info-tooltip:hover::after,
.info-tooltip:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.intensity-track-v2 {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.intensity-fill-v2 {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease-out;
}

.insight-list-v2 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.insight-item-v2 {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--text-muted);
  line-height: 1.5;
}

.insight-item-v2::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent-primary);
  margin-top: 0.5rem;
}

.report-footer-v2 {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-disclaimer-v2 {
  max-width: 60ch;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 22, 0.76);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  z-index: 40;
}

.modal-card {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(8, 12, 24, 0.28);
}

.pay-surface {
  background: linear-gradient(180deg, #ffffff, var(--light-surface));
  color: var(--light-text);
}

.pay-surface h3 {
  margin: 0;
  color: var(--light-text);
  font-size: 1.8rem;
}

.pay-copy,
.pay-note,
.report-note,
.success-copy {
  color: var(--light-muted);
  line-height: 1.6;
}

.pay-note {
  margin-top: 10px;
}

.plans {
  display: grid;
  gap: 10px;
  margin: 1rem 0 1.25rem;
}

.plan-light {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #eef4ff;
  border: 1px solid #d8e2fa;
  color: var(--light-text);
}

.plan-light span {
  color: #3450b7;
  font-weight: 700;
}

.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #e3ebff;
  color: var(--light-text);
}

.guidance-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.guidance-list li + li {
  margin-top: 0.65rem;
}

.report-note {
  margin-top: 1.25rem;
}

.error {
  min-height: 22px;
  color: var(--danger);
}

.legal-shell {
  max-width: 920px;
}

.legal-topbar {
  margin-top: 1rem;
}

.legal-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-card {
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(99, 234, 217, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(33, 27, 78, 0.98), rgba(16, 20, 42, 0.98));
}

.legal-meta {
  margin: 0 0 1.5rem;
  color: rgba(247, 249, 255, 0.68);
}

.legal-copy {
  display: grid;
  gap: 1.5rem;
}

.legal-copy h2 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.legal-copy a {
  color: var(--accent-primary);
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .app-hero-top,
  .importance-section,
  .assessment-layout,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .assessment-aside {
    position: static;
  }

  .report-hero {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .landing-shell,
  .assessment-shell {
    width: calc(100% - 20px);
    margin: 18px auto 40px;
  }

  .app-hero-top,
  .importance-section,
  .legal-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .app-hero-top {
    grid-template-columns: 1fr;
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2rem;
  }

  .importance-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-actions,
  .legal-nav {
    flex-direction: column;
  }

  .question-head {
    grid-template-columns: 1fr;
  }

  .question-illustration {
    justify-self: start;
    width: 104px;
    height: 86px;
  }

  .question-title,
  .stage-title,
  .assessment-aside h1,
  .legal-card h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .pill-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .inline-button,
  .button-primary,
  .button-secondary,
  .button-light {
    width: 100%;
  }

  .modal {
    place-items: start center;
    padding: 10px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
  }
}

/* Report Visualization & Enhanced Components */
.metric-info {
  width: 100%;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.metric-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease-out;
}

.score-ring {
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.score-text {
  fill: var(--text);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  transform: rotate(90deg);
  transform-origin: center;
}

.risk-badge-v2 {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--glass);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
}

.risk-meta span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.risk-meta strong {
  display: block;
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.report-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.report-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.report-container {
  max-width: 900px;
  margin: 0 auto;
}

.report-header-v2 {
  margin-bottom: 3rem;
}

.hero-text-content h3 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}



.landing-footer {
  padding: 0 4rem 2.5rem;
}

.landing-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(247, 249, 255, 0.72);
  font-size: 0.95rem;
}

.landing-footer-inner p {
  margin: 0;
}

.landing-footer-inner a {
  color: rgba(247, 249, 255, 0.9);
  text-decoration: none;
}

@media (max-width: 720px) {
  .landing-footer {
    padding: 0 18px 2rem;
  }

  .landing-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


#finalResult {
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.report-container-v2,
.report-hero-v2,
.report-grid-v2,
.report-card-v2,
.report-summary-v2,
.report-disclaimer-v2,
.score-badge-v2,
.risk-info-v2 {
  min-width: 0;
}

.report-container-v2 {
  width: 100%;
}

.report-hero-v2 {
  min-width: 0;
}

.report-hero-v2 h2 {
  overflow-wrap: anywhere;
}

.report-summary-v2,
.report-card-v2 p,
.insight-item-v2,
.report-disclaimer-v2 {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .report-header-v2 {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .score-badge-v2 {
    width: 100%;
  }

  .report-grid-v2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #finalResult {
    width: 100%;
  }

  .report-container-v2 {
    gap: 1.5rem;
  }

  .report-header-v2 {
    margin-bottom: 0;
    padding-bottom: 1.25rem;
    gap: 1rem;
  }

  .report-hero-v2 h2 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .report-summary-v2 {
    font-size: 1rem;
  }

  .score-badge-v2 {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.9rem;
  }

  .score-circle-v2 {
    width: 64px;
  }

  .score-value-v2 {
    font-size: 1.25rem;
  }

  .report-grid-v2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .report-card-v2 {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .card-title-v2 {
    font-size: 1.25rem;
  }

  .intensity-bars-v2 {
    gap: 0.9rem;
  }

  .report-footer-v2 {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .report-disclaimer-v2 {
    max-width: none;
    font-size: 0.82rem;
  }

  .report-actions {
    width: 100%;
  }

  .report-actions .button-primary {
    width: 100%;
  }

  .intensity-label-v2 {
    align-items: flex-start;
  }

  .intensity-label-v2 > span:last-child {
    flex: 0 0 auto;
  }

  .info-tooltip::after {
    left: 0;
    transform: none;
    bottom: auto;
    top: calc(100% + 8px);
    width: min(220px, calc(100vw - 72px));
  }
}
