:root {
  --green-deep: #0f3d2e;
  /* Accent changed from emerald green to a muted gold */
  --green-emerald: #d4af37;
  --bg-soft: #f7f9f8;
  --text-dark: #1a1a1a;
  --muted-gray: #6b7280;
  --border-subtle: #e5e7eb;
  --error-red: #b91c1c;
  --amber: #f59e0b;
  --radius-md: 14px;
  --shadow-soft: 0 20px 40px rgba(15, 61, 46, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  scroll-behavior: smooth;
  /* Prevent sideways scrolling on small screens */
  overflow-x: hidden;
}

body {
  line-height: 1.5;
}

/* Layout helpers */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-muted {
  background-color: var(--bg-soft);
}

.section-cta {
  background: linear-gradient(
    135deg,
    rgba(15, 61, 46, 0.98),
    rgba(15, 61, 46, 0.9)
  );
  color: #f9fafb;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 3rem;
  align-items: flex-start;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.section-intro {
  max-width: 32rem;
  color: var(--muted-gray);
}

.section-body > p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

/* Typography */

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", "Times New Roman", serif;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.1rem);
  line-height: 1.1;
}

h2 {
  font-size: 1.9rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 0.75rem;
  color: #111827;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--green-emerald);
  margin-bottom: 0.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
}

.logo-title {
  display: none;
}

.logo-tagline {
  display: none;
}

/* New stacked wordmark */
.logo-amanah {
  font-family: "Playfair Display", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--green-deep);
  display: block;
  text-align: center;
  width: 100%;
}

.logo-gold-rule {
  margin-top: 0.25rem;
  margin-bottom: 0.65rem;
  height: 2px;
  width: 100%;
  background-color: #c4a55b;
  border-radius: 999px;
}

.logo-subrow {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.logo-analytics {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-deep);
}

.logo-arabic {
  font-family: "Amiri", "Cairo", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--green-deep);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: #111827;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  border-bottom-color: rgba(31, 122, 89, 0.6);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    background-color 0.1s ease, color 0.1s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--green-deep);
  color: #f9fafb;
  box-shadow: 0 12px 22px rgba(15, 61, 46, 0.25);
}

.btn-primary:hover {
  background-color: #0c3125;
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15, 61, 46, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--green-deep);
  border: 1px solid rgba(15, 61, 46, 0.2);
}

.btn-outline:hover {
  border-color: rgba(15, 61, 46, 0.4);
  background-color: rgba(15, 61, 46, 0.03);
}

.btn-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.link-cta {
  background: none;
  border: none;
  color: var(--green-emerald);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.link-cta:hover {
  color: #b8942f;
}

/* Hero */

.hero {
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-copy .hero-subtitle {
  margin-top: 0.75rem;
  color: #4b5563;
  max-width: 32rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hero-footnote {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-gray);
}

/* Hero mock */

.hero-mock {
  opacity: 0.98;
}

.mock-card {
  background: linear-gradient(145deg, #f9fafb, #edf2f0);
  border-radius: 20px;
  padding: 1.4rem 1.4rem 1.6rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--shadow-soft);
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.mock-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.mock-pill {
  font-size: 0.7rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background-color: rgba(15, 61, 46, 0.06);
  color: var(--green-deep);
  border: 1px solid rgba(15, 61, 46, 0.12);
}

.mock-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mock-score-block {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Flat ring: same technique as .donut-chart – single conic + ::after hole, no 3D */
.mock-score-ring {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#4ade80 0 280deg, #e5e7eb 280deg 360deg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: none;
  -webkit-appearance: none;
  backface-visibility: hidden;
  flex-shrink: 0;
}

.mock-score-ring::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background-color: #f9fafb;
}

.mock-score-inner {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.mock-score-number {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-deep);
}

.mock-score-label {
  font-size: 0.7rem;
  color: var(--muted-gray);
}

.mock-score-heading {
  font-size: 0.95rem;
  font-weight: 600;
}

.mock-score-caption {
  font-size: 0.78rem;
  color: var(--muted-gray);
}

.mock-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
}

.mock-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-gray);
  margin-bottom: 0.4rem;
}

.mock-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2.4fr) auto;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
}

.mock-bar span:first-of-type {
  min-width: 0;
  padding-right: 0.25rem;
}

.bar-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background-color: rgba(229, 231, 235, 0.9);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
}

.bar-fill-green {
  /* Compliant equities: green leading into yellow */
  background: linear-gradient(90deg, #16a34a 0%, #86efac 40%, #facc15 100%);
}

.bar-fill-amber {
  /* Non-compliant / cash: green first, then yellow */
  background: linear-gradient(90deg, #16a34a 0%, #a3e635 40%, #facc15 100%);
}

.bar-fill-red {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.bar-value {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: #111827;
}

.mock-purification-amount {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-deep);
}

.per-year {
  font-size: 0.8rem;
  margin-left: 0.1rem;
  color: var(--muted-gray);
}

.mock-violations {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: #374151;
}

.mock-violations li + li {
  margin-top: 0.2rem;
}

.mock-disclaimer {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  color: var(--muted-gray);
}

/* Problem */

.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}

.problem-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
}

.problem-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* Steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.step-card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-emerald);
  margin-bottom: 0.3rem;
}

/* Report section */

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.6rem;
  margin-top: 2rem;
}

.report-card {
  background-color: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
  padding: 1.5rem 1.6rem;
}

.report-score-row {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.3rem;
}

.report-score-circle {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
}

.report-score-text {
  padding-left: 0.35rem;
}

/* Flat ring: same technique as .donut-chart – single conic + ::after hole */
.report-score-circle .circle-outer {
  width: 90px;
  height: 90px;
  min-width: 90px;
  min-height: 90px;
  max-width: 90px;
  max-height: 90px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#4ade80 0 280deg, #e5e7eb 280deg 360deg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: none;
  backface-visibility: hidden;
  flex-shrink: 0;
}

.report-score-circle .circle-outer::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background-color: #f9fafb;
}

.report-score-circle .circle-inner {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.circle-score {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-deep);
}

.circle-label {
  display: none;
}

.report-score-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.report-score-desc {
  font-size: 0.86rem;
  color: #4b5563;
  margin-top: 0.2rem;
}

/* Breakdown + charts */

.report-breakdown {
  margin-top: 1rem;
}

.report-breakdown h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
}

.breakdown-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.2rem 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot-green {
  background-color: #16a34a;
}

.dot-amber {
  background-color: #f59e0b;
}

.dot-red {
  background-color: #dc2626;
}

.breakdown-value {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
}

/* Donut chart */

.chart-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  margin-top: 0.4rem;
}

.donut-chart {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    #16a34a 0 220deg,
    #f59e0b 220deg 280deg,
    #dc2626 280deg 360deg
  );
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background-color: #ffffff;
}

/* Simple bar chart */

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) auto;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.82rem;
}

.bar-row span:first-of-type {
  min-width: 0;
  padding-right: 0.25rem;
}

/* Recommendations + projected score */

.report-actions {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #e5e7eb;
}

.report-actions h4 {
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.actions-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: #374151;
}

.actions-list li + li {
  margin-top: 0.35rem;
}

.projected-compliance {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 61, 46, 0.14);
  background: linear-gradient(135deg, rgba(15, 61, 46, 0.04), rgba(212, 175, 55, 0.08));
}

.projected-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-gray);
  margin-bottom: 0.2rem;
}

.projected-score {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.projected-from {
  font-size: 1.05rem;
  font-weight: 600;
  color: #374151;
}

.projected-arrow {
  font-size: 0.95rem;
  color: var(--muted-gray);
}

.projected-to {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f3d2e;
  line-height: 1;
}

.projected-note {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #4b5563;
}

/* Violations & purification */

.report-section {
  margin-top: 1rem;
}

.report-section:first-of-type {
  margin-top: 0.3rem;
}

.violations-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.violation-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background-color: rgba(15, 61, 46, 0.06);
  color: var(--green-deep);
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.violation-title {
  font-size: 0.86rem;
  font-weight: 600;
}

.violation-text {
  font-size: 0.8rem;
  color: #4b5563;
}

.purification-amount {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-deep);
}

.purification-text {
  font-size: 0.84rem;
  color: #4b5563;
  margin-top: 0.3rem;
}

.report-footnote {
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed #e5e7eb;
  font-size: 0.78rem;
  color: var(--muted-gray);
}

/* Standards */

.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.3rem;
}

.pill-card {
  padding: 1.2rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
}

.pill-card p {
  font-size: 0.9rem;
}

.methodology-footnotes {
  margin-top: 1.2rem;
  font-size: 0.86rem;
  color: #4b5563;
}

/* Who it's for */

.who-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.who-card {
  padding: 1.2rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  position: relative;
}

.who-card-secondary {
  border-style: dashed;
}

.who-tag {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 0.7rem;
  color: var(--muted-gray);
}

/* CTA / waitlist */

.section-cta .eyebrow {
  color: #a7f3d0;
}

.section-cta h2 {
  color: #ecfdf5;
}

.section-cta p {
  color: #d1fae5;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.waitlist-form {
  background-color: rgba(15, 23, 42, 0.35);
  border-radius: 20px;
  padding: 1.4rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: grid;
  /* Two columns for inputs, button sits on its own row below */
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.6rem;
  align-items: stretch;
  /* Keep even vertical spacing within the CTA section */
  margin-top: 0;
  width: 100%;
}

.waitlist-form input,
.waitlist-form select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  background-color: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  outline: none;
  min-width: 0;
  white-space: normal;
}

.waitlist-form select option {
  white-space: normal;
}

.waitlist-form__name {
  grid-column: 1 / -1;
}

.waitlist-form input::placeholder {
  color: #9ca3af;
}

.waitlist-form button.btn-primary {
  grid-column: 1 / -1;
  white-space: nowrap;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  width: 100%;
}

/* Gold variant for waitlist CTA button */
.section-cta .waitlist-form button.btn-primary {
  background-color: #e5d426;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.4);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.section-cta .waitlist-form button.btn-primary:hover {
  background-color: #e5d426;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.1rem;
  line-height: 1.4;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.3rem 0;
  background-color: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted-gray);
}

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

.footer-links a {
  color: var(--muted-gray);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green-deep);
}

/* Utilities */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Privacy / Terms page basics */

.simple-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.simple-main {
  padding: 3.5rem 0;
}

/* Legal pages (Privacy, Terms) */
.legal-content {
  max-width: 42rem;
}
.legal-content .legal-meta {
  color: var(--muted-gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}
.legal-content h2:first-of-type {
  margin-top: 1.5rem;
}
.legal-content h3 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}
.legal-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
}
.legal-content li + li {
  margin-top: 0.25rem;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .section-grid,
  .report-grid,
  .cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.2rem;
  }

  .header-inner {
    gap: 1rem;
  }

  .nav {
    display: none;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pill-grid,
  .who-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .report-score-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .container {
    padding-inline: 1rem;
  }

  /* Mock card (RRSP Compliance Overview): prevent text spill, extra bar spacing */
  .mock-card {
    overflow: hidden;
  }

  .mock-header {
    min-width: 0;
    gap: 0.5rem;
  }

  .mock-title {
    flex: 1;
    min-width: 0;
  }

  .mock-score-text {
    min-width: 0;
  }

  .mock-title,
  .mock-score-caption,
  .mock-score-heading,
  .mock-label,
  .mock-violations,
  .mock-disclaimer,
  .mock-score-text p,
  .mock-column p {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
  }

  .mock-columns {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .mock-bar {
    gap: 0.85rem;
  }

  .mock-bar span:first-of-type {
    padding-right: 0.35rem;
  }

  /* Report card (Compliance score & asset mix): same fixes */
  .report-card {
    overflow: hidden;
  }

  .report-score-title,
  .report-score-desc,
  .report-breakdown h4,
  .breakdown-list,
  .breakdown-list li,
  .purification-text,
  .report-footnote,
  .report-card h3,
  .report-card h4,
  .report-section p {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
  }

  .breakdown-list li {
    gap: 0.6rem;
  }

  .bar-row {
    gap: 0.85rem;
  }

  .bar-row span:first-of-type {
    padding-right: 0.35rem;
  }

  .chart-row {
    gap: 1rem;
  }
}

