/* Lean Labs dark style implementation from Figma */
:root {
  --color-body: #0d0d0d;
  --color-card: #141414;
  --color-card-hover: #1b1b1b;
  --color-border: #2b2b2b;
  --color-text: #ffffff;
  --color-text-muted: #949494;
  --color-text-disabled: #757575;
  --color-icon: #b0b0b0;
  --color-success: #86efac;
  --color-alert: #fde68a;
  --color-error: #fca5a5;
  --color-blue: #93c5fd;
  --color-accent: #ffffff;
  --color-accent-soft: rgba(255, 255, 255, 0.14);
  --color-surface: linear-gradient(115deg, #111111 0%, #151515 100%);

  --font-base: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --h1: 56px;
  --h2: 42px;
  --h3: 36px;
  --h4: 28px;
  --h5: 24px;
  --h6: 20px;
  --text-lg: 20px;
  --text-md: 18px;
  --text-base: 16px;
  --text-sm: 14px;
  --text-xs: 12px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-xxsmall: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-xsmall: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-small: 0 2px 4px -2px rgba(0, 0, 0, 0.06), 0 4px 8px -2px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px -2px rgba(0, 0, 0, 0.03), 0 12px 16px -4px rgba(0, 0, 0, 0.08);
  --shadow-large: 0 8px 8px -4px rgba(0, 0, 0, 0.03), 0 20px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 0 rgba(0, 0, 0, 0);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-base);
  background: var(--color-body);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.05), transparent 45%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.03), transparent 50%),
    var(--color-body);
  z-index: -3;
}

.site-stars {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1.5px);
  background-size: 48px 48px;
  opacity: 0.18;
  z-index: -2;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

h1,.h1 { font-size: var(--h1); }
h2 { font-size: var(--h3); }
h3 { font-size: var(--h4); }


p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

a,
button {
  font-family: inherit;
}

.text-accent {
  color: var(--color-text-muted);
}

.text-primary {
  color: var(--color-text);
}

.screen {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.screen.active {
  display: block;
  animation: fadeUp 0.24s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-md);
  font-weight: 600;
}

.brand-dot {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  color: var(--color-text);
}

.nav-meta {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.nav-meta:hover {
  color: var(--color-text);
}

.page-container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-24) var(--space-6) var(--space-24);
}

.scan-shell,
.results-grade-section,
.results-gaps-section,
.results-fixplan-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-medium);
}

.hero-card {
  margin-top: var(--space-2);
  padding: var(--space-16) var(--space-10) var(--space-12);
  display: grid;
  gap: var(--space-16);
  border: none;
  background: transparent;
  box-shadow: none;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.hero-copy p {
  font-size: var(--text-md);
  max-width: 700px;
  text-wrap: balance;
  margin: 0 auto;
}

.form-panel {
  /* border: 1px solid var(--color-border); */
  border-radius: var(--radius-lg);
  /* padding: var(--space-6); */
  max-width: 768px;
  width: 100%;
  margin: 0 auto;
  /* background: rgba(13, 13, 13, 0.72); */
}

.form-panel label {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 600;
}

.url-input-group {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-3);
}

.url-input-wrapper {
  flex: 1;
}

.url-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #121212;
  color: var(--color-text);
  padding: 0 var(--space-4);
  font-size: var(--text-base);
  outline: none;
  font-family: inherit;
}

.url-input::placeholder {
  color: var(--color-text-disabled);
}

.url-input:focus {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.input-footnote {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  text-align: center;
}

.btn-primary,
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 0 var(--space-6);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: #efefef;
  color: #111111;
  box-shadow: var(--shadow-xxsmall);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-secondary {
  background: #1c1c1c;
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: #232323;
}

.scan-shell {
  margin-top: var(--space-8);
  padding: var(--space-10);
}

.scan-header {
  /* max-width: 780px; */
  margin-bottom: var(--space-8);
}

.scan-header p {
  margin-top: var(--space-3);
  font-size: var(--text-md);
}


.scan-url {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-sm);
  background: #181818;
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.scan-url svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-icon);
  fill: none;
  stroke-width: 1.6;
}

.scan-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #151515;
  overflow: hidden;
  border: 1px solid #232323;
  margin-bottom: var(--space-6);
}

.scan-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
  box-shadow: none;
  transition: width 0.45s ease;
}

.scan-steps {
  display: grid;
  gap: var(--space-4);
}

.scan-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.scan-step.active,
.scan-step.done {
  color: var(--color-text);
}

.scan-check {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  background: #1a1a1a;
}

.scan-check svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-icon);
  fill: none;
  stroke-width: 2;
}

.scan-check.active {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.scan-check.done {
  background: #1b1b1b;
  border-color: rgba(255, 255, 255, 0.45);
}

.error-message {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-error);
  border: 1px solid rgba(252, 165, 165, 0.35);
  border-radius: var(--radius-md);
  background: rgba(65, 22, 22, 0.4);
  padding: var(--space-3) var(--space-4);
  display: none;
}

.error-message.visible {
  display: block;
}

.results-grade-section,
.results-gaps-section,
.results-fixplan-section {
  margin-top: var(--space-8);
  padding: var(--space-8);
}

.results-cta-section {
  margin-top: var(--space-16);
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.results-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-share-link[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
}

.grade-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  align-items: center;
}

.grade-container {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: var(--space-3);
}

.grade-circle {
  width: 220px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: transparent;
}

.gauge-svg {
  position: absolute;
  inset: 0;
  width: 220px;
  height: 140px;
}

.gauge-track,
.gauge-arc {
  fill: none;
  stroke-linecap: round;
  stroke-width: 14;
}

.gauge-track {
  stroke: rgba(255, 255, 255, 0.18);
}

.gauge-arc {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.65s ease;
  transform-origin: 50% 50%;
}

.grade-letter {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-top: 50px;
}

.grade-score {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.8;
}

.grade-label {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
}

.grade-url {
  font-size: var(--text-xs);
}

.verdict-text {
  color: var(--color-text);
  font-size: var(--text-md);
  /* font-weight: 600; */
  margin-bottom: var(--space-4);
}

.subtext {
  max-width: 620px;
}

.dimensions-card {
  margin-top: var(--space-16);
  /* border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(12, 12, 12, 0.82); */
  /* padding: var(--space-6); */
}

.section-label {
  color: var(--color-text-muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.dimension-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) minmax(180px, 1fr) auto 24px;
  align-items: center;
  gap: var(--space-4);
  padding: 14px var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: hsla(0,0%,100%,.03);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dimension-row:last-child {
  margin-bottom: 0;
}

.dimension-row:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: hsla(0, 0%, 100%, 0.06);
  transform: translateX(2px);
}

.dimension-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dimension-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.dimension-dot.high {
  background: #86efac;
}

.dimension-dot.mid {
  background: #fde68a;
}

.dimension-dot.low {
  background: #fca5a5;
}

.dimension-name {
  color: var(--color-text);
  font-size: var(--text-sm);
}

.dimension-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.dimension-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.dimension-bar-fill.high {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
}

.dimension-bar-fill.mid {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.45));
}

.dimension-bar-fill.low {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.3));
}

.dimension-score {
  min-width: 58px;
  text-align: center;
  color: #86efac;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #2D5F3F;
  background: rgba(22, 163, 74, 0.20);
}

.dimension-score.mid {
  color: #f7e7a3;
  border: 1px solid rgba(252, 211, 77, .25);
  background: rgba(252, 211, 77, .06);
}

.dimension-score.low {
  color: #fca5a5;
  border: 1px solid hsla(0, 91%, 71%, .25);
  background: hsla(0, 91%, 71%, .06);
}

.dimension-expand-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.52);
  justify-self: end;
}

.dimension-row:hover .dimension-expand-icon {
  color: rgba(255, 255, 255, 0.85);
}

.section-copy h3 {
  margin-bottom: var(--space-2);
}

.section-copy p {
  margin-bottom: var(--space-6);
}

.gap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.gap-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--color-surface);
  box-shadow: var(--shadow-xsmall);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.gap-card.critical {
  border-color: rgba(255, 255, 255, 0.22);
}

.gap-card:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: #1a1a1a;
  transform: translateY(-2px);
}

.gap-priority {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: var(--space-2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.gap-priority.critical {
  color: #f8b4b4;
  border: 1px solid hsla(0, 91%, 71%, .25);
  background: hsla(0, 91%, 71%, .06);
}

.gap-priority.moderate {
  color: #f7e7a3;
  border-color: rgba(253, 230, 138, 0.4);
  background: rgba(253, 230, 138, 0.08);
}

.gap-card h4 {
  color: var(--color-text);
  font-size: var(--text-md);
  margin-bottom: var(--space-2);
}

.gap-card p {
  font-size: var(--text-sm);
}

.gap-cta {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.gaps-more-text {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}

.gated-container {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 10, 0.82);
  position: relative;
  overflow: hidden;
}

.gated-content {
  padding: var(--space-6);
  filter: blur(4px);
  opacity: 0.46;
  user-select: none;
  pointer-events: none;
}

.fix-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid #1f1f1f;
}

.fix-item:last-child {
  border-bottom: none;
}

.fix-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  color: var(--color-text);
  font-weight: 600;
  flex-shrink: 0;
}

.fix-item h4 {
  color: var(--color-text);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.fix-item p {
  font-size: var(--text-sm);
}

.gated-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: var(--space-8);
  background: linear-gradient(180deg, rgba(13, 13, 13, 0) 0%, rgba(13, 13, 13, 0.8) 50%, rgba(13, 13, 13, 0.96) 100%);
}

.gated-overlay-inner {
  max-width: 520px;
}

.gated-overlay h3 {
  margin-bottom: var(--space-2);
}

.gated-overlay p {
  margin-bottom: var(--space-4);
}

.gated-footnote {
  margin-top: var(--space-3);
  display: block;
  font-size: var(--text-xs);
}

.cta-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 5rem;
  background: url(./assets/bg-aurora-short.svg);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
}

.cta-box p {
  max-width: 640px;
  font-size: var(--text-md);
  margin: var(--space-6) auto var(--space-12);
  text-wrap: balance;
}
.cta-group {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.link-inline {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: hsla(0,0%,100%,.3);
  cursor: pointer;
}

.link-inline:hover {
  color: var(--color-text);
  text-decoration-color: var(--color-text);
}

.site-footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-10);
}

.site-footer p {
  font-size: var(--text-xs);
  color: var(--color-text-disabled);
  text-align: center;
  text-wrap: balance;
}

/* Modal detail overlays */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 7, 0.76);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-6);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(780px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #121212;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-large);
  padding: var(--space-8);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #1a1a1a;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.2;
}

.modal-close:hover {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.34);
}

.modal-header {
  margin-bottom: var(--space-2);
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.15);
  color: #949494;
  font-size: var(--text-xs);
  text-transform: none;
  letter-spacing: normal;
}

.modal-badge.high {
  color: #fca5a5;
  border: 1px solid hsla(0,91%,71%,.25);
  background: hsla(0,91%,71%,.06);
}

.modal-badge.moderate {
  color: #fde68a;
  border: 1px solid rgba(252,211,77,.25);
  background: rgba(252,211,77,.06);
}

.modal h2 {
  margin: 0 0 var(--space-2);
  font-size: 28px;
}

.modal-score-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
}

.modal-score-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-sm);
}

.modal-section {
  margin-bottom: var(--space-6);
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-disabled);
  margin-bottom: var(--space-2);
}

.modal-section-label:has(+.code-block) {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.15);
  color: #949494;
  font-size: var(--text-xs);
  text-transform: none;
  letter-spacing: normal;
}

.modal-section-label:has(+.needed) {
  color: #f7e7a3;
  border: 1px solid rgba(252, 211, 77, .25);
  background: rgba(252, 211, 77, .06);
}

.modal-rationale {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  padding: var(--space-4);
  line-height: 1.6;
}

.modal-location {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  padding: 8px 10px;
  font-size: var(--text-sm);
}

.modal-description {
  margin-bottom: var(--space-6);
}

.code-block {
  position: relative;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: #0f0f0f;
  padding: var(--space-4);
  overflow-x: auto;
  scrollbar-width: thin;
}

.code-block.needed {
  border-left:
}

.code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #d4d4d4;
  white-space: pre;
}


.code-block.missing {
  color: #fca5a5;
  font-style: italic;
  text-align: center;
  white-space: normal;
  padding: var(--space-5);
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #1c1c1c;
  color: var(--color-text);
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}

.code-copy:hover {
  border-color: rgba(255, 255, 255, 0.26);
}

/* Full-screen meeting modal */
.meeting-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 2, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: var(--space-6);
}

.meeting-modal-backdrop.open {
  display: flex;
}

.meeting-modal {
  max-width: 1240px;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 3fr;
  padding: 32px;
}

.meeting-modal-close {
  position: absolute;
  top: 0;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #1a1a1a;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.2;
}

.meeting-modal-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}




.meeting-modal-left ul {
  margin-left: 18px;
  color: var(--color-text-muted);
  display: grid;
  gap: var(--space-2);
}

.meeting-modal-contact {
  margin-top: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: var(--space-4);
  display: grid;
  gap: 2px;
}

.meeting-modal-contact strong {
  color: var(--color-text);
}

.meeting-modal-contact span {
  color: var(--color-text-muted);
}


@media (max-width: 1024px) {
  :root {
    --h1: 48px;
    --h2: 36px;
    --h3: 32px;
    --h4: 24px;
  }

  .grade-layout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .dimension-row {
    grid-template-columns: minmax(160px, 1fr) minmax(140px, 1fr) auto 24px;
  }
}

@media (max-width: 768px) {
  .cta-box {
    padding: 48px 32px;
  }
  .cta-box .cta-group {
    flex-direction: column;
  }
  :root {
    --h1: 40px;
    --h2: 32px;
    --h3: 28px;
    --h4: 22px;
  }

  .nav {
    padding: var(--space-4);
  }

  .page-container {
    padding: 0 var(--space-4) var(--space-16);
  }

  .hero-card,
  .scan-shell,
  .results-grade-section,
  .results-gaps-section,
  .results-fixplan-section {
    padding: var(--space-6);
  }

  .url-input-group {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-10);
    margin-bottom: var(--space-6);
  }

  .results-toolbar-actions {
    width: 100%;
    flex-direction: column;
  }

  .dimension-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dimension-main {
    width: 100%;
  }

  .dimension-score {
    width: fit-content;
  }

  .dimension-expand-icon {
    justify-self: start;
  }

  .meeting-modal {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: 92vh;
    padding: 0;
    overflow-y: scroll
  }

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

  .gated-overlay {
    padding: var(--space-6);
  }
}
