@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --navy: #0c1016;
  --navy-2: #1b2028;
  --teal: #ff8618;
  --teal-2: rgba(255, 134, 24, 0.12);
  --green: #1a7f4b;
  --amber: #b86c00;
  --red: #a62020;
  --ink: #f3f4f6;
  --muted: #9aa0ab;
  --line: rgba(255, 255, 255, 0.08);
  --page: #0c1016;
  --white: #f3f4f6;
  --panel: #1b2028;
  --panel-soft: #181d25;
  --accent: #ff8618;
  --accent-strong: #ff9226;
  --copy: #d7dce5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
  color: var(--white);
  background: var(--navy);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.logo-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.sidebar-logo strong,
.sidebar-logo small {
  display: block;
}

.sidebar-logo small {
  margin-top: 2px;
  color: #b8c8dc;
  font-size: 0.78rem;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a,
.sidebar-cta,
.sidebar-status {
  border-radius: 8px;
}

.sidebar-nav a {
  padding: 12px 13px;
  color: #dce9f7;
  font-weight: 750;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--white);
  background: rgba(0, 123, 110, 0.36);
}

.sidebar-nav a.active {
  border-left: 4px solid var(--teal);
  padding-left: 9px;
}

.sidebar-cta {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px;
  color: #dce9f7;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}

.sidebar-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.page-content {
  min-width: 0;
}

.site-header {
  background: var(--navy);
  color: var(--white);
}

.nav,
.portal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand,
.nav-link,
.portal-header a {
  font-weight: 700;
}

.nav-title {
  color: #a7fff5;
  font-weight: 800;
}

.nav-link {
  justify-self: end;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 40px;
  align-items: center;
  max-width: 1120px;
  min-height: 560px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

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

.site-header .eyebrow {
  color: #86f2e7;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: 2rem;
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
}

.hero-text {
  max-width: 540px;
  color: #dce9f7;
  font-size: 1.22rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--teal);
}

.secondary {
  color: var(--teal);
  background: var(--teal-2);
}

.full {
  width: 100%;
}

.stat-badge {
  max-width: 290px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  color: #dce9f7;
  font-size: 0.92rem;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.phone-shell {
  position: relative;
  width: min(100%, 360px);
  min-height: 520px;
  border: 10px solid #061124;
  border-radius: 34px;
  padding: 24px 20px;
  background:
    linear-gradient(180deg, #f7fbff 0%, #dfeaf5 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #516071;
  font-size: 0.82rem;
  font-weight: 800;
}

.transcript-card {
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(13, 31, 60, 0.08);
}

.transcript-label {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.transcript-card p {
  margin-bottom: 0;
  color: #263246;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.48;
}

.message {
  margin-top: 14px;
  border-radius: 8px;
  padding: 13px 14px;
  color: #421111;
  background: #ffe9e9;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.analysis-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.analysis-list span {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--navy);
  background: var(--teal-2);
  font-size: 0.84rem;
  font-weight: 850;
}

.scan-line {
  position: absolute;
  right: 18px;
  bottom: 78px;
  left: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--teal);
}

.verdict-chip {
  position: absolute;
  right: 22px;
  bottom: 42px;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--white);
  background: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
}

.muted {
  max-width: none;
  background: var(--page);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 28px;
}

.feature-grid,
.steps,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.feature-card,
.steps article,
.stat-card,
.input-card,
.result-card,
.loading-card,
.error-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-card,
.steps article,
.stat-card {
  padding: 24px;
}

.stats-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.stats-bubble-field {
  position: relative;
  min-height: 900px;
  max-width: 1120px;
  margin: 0 auto;
}

.stats-bubble-field.bubbles-popped .stat-bubble {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.18);
  transition:
    opacity 360ms ease,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stat-bubble {
  --glow-size: 0px;
  position: absolute;
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(0, 123, 110, 0.22);
  border-radius: 50%;
  padding: clamp(24px, 4vw, 42px);
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #f1fbf9 58%, #d9f0ec 100%);
  box-shadow:
    0 24px 60px rgba(13, 31, 60, 0.13),
    0 0 var(--glow-size) rgba(0, 123, 110, 0.34);
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  transition:
    opacity 700ms ease,
    transform 700ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.stat-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stat-bubble::after {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  content: "";
  pointer-events: none;
}

.stat-bubble:hover {
  --glow-size: 36px;
  filter: brightness(1.04);
}

.bubble-large {
  top: 20px;
  left: 0;
  width: min(46%, 520px);
  color: var(--white);
  background: radial-gradient(circle at 30% 25%, #1f3a62 0%, var(--navy) 64%, #07152b 100%);
}

.bubble-medium {
  top: 210px;
  right: 6%;
  width: min(34%, 390px);
}

.bubble-small {
  top: 500px;
  left: 48%;
  width: min(27%, 300px);
}

.bubble-mini {
  width: min(22%, 250px);
  padding: clamp(18px, 2.6vw, 26px);
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #f7fbff 56%, #e5edf6 100%);
}

.bubble-mini-top {
  top: 42px;
  right: 3%;
}

.bubble-mini-left {
  top: 440px;
  left: 10%;
}

.bubble-mini-right {
  top: 650px;
  right: 13%;
}

.stat-bubble .stat-number {
  font-size: clamp(3rem, 8vw, 6.2rem);
}

.bubble-medium .stat-number {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.bubble-small .stat-number {
  font-size: clamp(2.35rem, 5vw, 4rem);
}

.bubble-mini .stat-number {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.stat-bubble h3 {
  max-width: 82%;
  margin: 18px auto 8px;
  text-align: center;
}

.bubble-mini h3 {
  margin-top: 10px;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
}

.stat-bubble p {
  max-width: 82%;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.45vw, 1rem);
  line-height: 1.42;
  text-align: center;
}

.bubble-mini p {
  max-width: 86%;
  font-size: clamp(0.72rem, 1.2vw, 0.84rem);
  line-height: 1.32;
}

.bubble-large .stat-number {
  color: #86f2e7;
}

.bubble-large p {
  color: #dce9f7;
}

.bubble-protection-callout {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(92%, 620px);
  border: 1px solid rgba(0, 123, 110, 0.24);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 44px);
  background: var(--white);
  box-shadow: 0 28px 70px rgba(13, 31, 60, 0.18);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -44%) scale(0.94);
  transition:
    opacity 440ms ease 220ms,
    transform 440ms ease 220ms;
}

.bubble-protection-callout h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.bubble-protection-callout p:not(.eyebrow) {
  max-width: 500px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.bubble-protection-callout .button {
  width: fit-content;
}

.stats-bubble-field.bubbles-popped .bubble-protection-callout {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.process-section {
  max-width: none;
  padding-top: 72px;
  padding-bottom: 72px;
  background: var(--page);
}

.process-section > * {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.process-heading {
  max-width: 780px;
}

.process-heading p:last-child {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

.process-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.process-timeline::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 23px;
  width: 2px;
  background: rgba(0, 123, 110, 0.28);
  content: "";
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(0, 123, 110, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(13, 31, 60, 0.06);
}

.step-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 950;
  box-shadow: 0 0 0 2px rgba(0, 123, 110, 0.24);
}

.process-step h3 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.08rem;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.system-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.system-notes span {
  border: 1px solid rgba(0, 123, 110, 0.26);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--teal);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 850;
}

.stat-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  border-color: rgba(0, 123, 110, 0.22);
  background: linear-gradient(180deg, var(--white) 0%, #f1fbf9 100%);
}

.large-stat {
  background: var(--navy);
  color: var(--white);
}

.stat-number {
  color: var(--teal);
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 950;
  line-height: 0.95;
}

.large-stat .stat-number {
  color: #86f2e7;
}

.stat-card h3 {
  margin-top: 24px;
  font-size: 1.25rem;
}

.stat-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.large-stat p {
  color: #dce9f7;
}

.loss-chart-card {
  border: 1px solid rgba(0, 123, 110, 0.22);
  border-radius: 8px;
  margin-top: 44px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(13, 31, 60, 0.08);
}

.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.chart-heading h3 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.45rem;
  line-height: 1.25;
}

.chart-note {
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--teal);
  background: var(--teal-2);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.metric-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.metric-button {
  min-height: 38px;
  border: 1px solid rgba(0, 123, 110, 0.28);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--teal);
  background: var(--white);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.metric-button:hover,
.metric-button:focus-visible,
.metric-button.active {
  color: var(--white);
  background: var(--teal);
  outline: none;
}

.spreadsheet-chart-wrap {
  position: relative;
}

.chart-grid {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.y-axis {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  min-height: 320px;
  padding: 18px 0 48px;
}

.y-axis-tick {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.y-axis-tick::after {
  position: absolute;
  top: 0.62em;
  right: -13px;
  width: 10px;
  height: 2px;
  background: var(--navy);
  content: "";
}

.chart-axis-title {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.y-axis-title {
  margin: 0 0 8px 116px;
}

.x-axis-title {
  margin: 10px 0 0 116px;
  text-align: center;
}

.spreadsheet-histogram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: 14px;
  align-items: start;
  min-height: 388px;
  border-left: 2px solid var(--navy);
  padding: 18px 0 0 16px;
  overflow-x: auto;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(52px - 1px),
      rgba(216, 224, 234, 0.86) calc(52px - 1px),
      rgba(216, 224, 234, 0.86) 52px
    );
  background-size: 100% 260px;
  background-repeat: repeat-x;
}

.spreadsheet-column {
  display: grid;
  grid-template-rows: 260px 58px;
  gap: 10px;
  min-width: 72px;
}

.spreadsheet-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 260px;
  border-bottom: 2px solid var(--navy);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(13, 31, 60, 0.04), rgba(0, 123, 110, 0.08));
}

.spreadsheet-fill {
  display: block;
  width: min(70%, 54px);
  height: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--navy));
  box-shadow: 0 10px 24px rgba(13, 31, 60, 0.14);
  transition: height 420ms ease, filter 160ms ease;
}

.spreadsheet-column.no-value .spreadsheet-fill {
  height: 100% !important;
  background: repeating-linear-gradient(
    45deg,
    #d7dee8,
    #d7dee8 8px,
    #e9eef5 8px,
    #e9eef5 16px
  );
}

.spreadsheet-value {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 900;
  opacity: 0;
  transition: opacity 160ms ease;
}

.spreadsheet-label {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  align-self: start;
}

.spreadsheet-column:hover .spreadsheet-fill,
.spreadsheet-column:focus-within .spreadsheet-fill {
  filter: brightness(1.08);
}

.spreadsheet-column:hover .spreadsheet-value,
.spreadsheet-column:focus-within .spreadsheet-value {
  opacity: 1;
}

.spreadsheet-hitbox {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: default;
}

.spreadsheet-hitbox:focus-visible {
  outline: 3px solid rgba(0, 123, 110, 0.22);
  outline-offset: -3px;
}

.chart-tooltip {
  position: fixed;
  z-index: 20;
  max-width: 260px;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 14px 34px rgba(13, 31, 60, 0.22);
  font-size: 0.88rem;
  font-weight: 800;
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  color: #86f2e7;
  font-size: 1rem;
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 118px minmax(120px, 1fr) 86px;
  align-items: center;
  gap: 12px;
}

.bar-label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.bar-track {
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef5;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.bar-fill.highlight {
  background: var(--navy);
}

.bar-fill.senior {
  background: linear-gradient(90deg, var(--teal), var(--navy));
}

.bar-row strong {
  color: var(--navy);
  font-size: 0.95rem;
  text-align: right;
}

.data-table-wrap {
  margin-top: 26px;
  overflow-x: auto;
}

.data-table {
  min-width: 780px;
}

.data-table th {
  color: var(--navy);
  background: var(--teal-2);
}

.data-table td,
.data-table th {
  white-space: nowrap;
}

.feature-icon,
.steps span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--teal);
  background: var(--teal-2);
  font-weight: 900;
}

.feature-card p,
.steps p {
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  padding: 28px 24px;
  color: #cbd7e6;
  background: var(--navy);
  text-align: center;
}

.portal-body {
  background: var(--page);
}

.portal-header {
  max-width: none;
  color: var(--white);
  background: var(--navy);
}

.portal-header strong {
  color: #a7fff5;
}

.portal {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 56px 18px;
}

.input-card,
.result-card,
.loading-card,
.error-card {
  padding: 24px;
  box-shadow: 0 12px 28px rgba(13, 31, 60, 0.08);
}

.card-heading h1 {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.15;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 168px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 123, 110, 0.16);
}

input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

input[type="file"]:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 123, 110, 0.16);
}

.analysis-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.analysis-tab {
  min-height: 44px;
  border: 1px solid rgba(0, 123, 110, 0.28);
  border-radius: 8px;
  color: var(--teal);
  background: var(--white);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.analysis-tab.active,
.analysis-tab:hover,
.analysis-tab:focus-visible {
  color: var(--white);
  background: var(--teal);
  outline: none;
}

.analysis-panel {
  margin-bottom: 18px;
}

.qr-preview {
  display: block;
  max-width: 280px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  background: var(--white);
}

.voice-file-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.input-row,
.result-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.qr-note {
  color: var(--teal);
  font-weight: 750;
}

.hidden {
  display: none;
}

.loading-card {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.loading-card.hidden {
  display: none;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.verdict-badge {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.verdict-badge.suspicious {
  background: var(--amber);
}

.verdict-badge.scam {
  background: var(--red);
}

.explanation {
  font-size: 1.05rem;
  line-height: 1.65;
}

.decision-description {
  border: 1px solid rgba(0, 123, 110, 0.2);
  border-radius: 8px;
  margin: 16px 0;
  padding: 16px;
  background: #fbfdff;
}

.decision-description strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.decision-description p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.recommendation {
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  margin: 20px 0;
  padding: 16px;
  background: var(--teal-2);
}

.recommendation p {
  margin-bottom: 0;
}

.url-section h2,
.flags-section h2,
.qr-result-section h2,
.voice-result-section h2 {
  margin: 24px 0 12px;
  font-size: 1.1rem;
}

.qr-result-section code {
  display: block;
  border-radius: 8px;
  padding: 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: var(--ink);
  background: #eef4f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.voice-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.voice-score-grid div,
.voice-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.voice-score-grid span,
.voice-detail strong {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-score-grid strong {
  color: var(--ink);
  font-size: 1.8rem;
}

.voice-detail {
  margin-bottom: 12px;
}

.voice-detail p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-wrap;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.93rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

td:first-child {
  overflow-wrap: anywhere;
}

.status {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.status.safe {
  background: var(--green);
}

.status.suspicious {
  background: var(--amber);
}

.status.malicious {
  background: var(--red);
}

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

.tag {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--teal);
  background: var(--teal-2);
  font-size: 0.85rem;
  font-weight: 800;
}

.error-card {
  border-color: #f0c4c4;
  color: var(--red);
  background: #fff7f7;
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 16px;
  }

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

  .sidebar-cta,
  .sidebar-status {
    margin-top: 0;
  }

  .nav,
  .portal-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .nav-link {
    justify-self: start;
  }

  .hero,
  .feature-grid,
  .steps,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .analysis-tabs,
  .voice-score-grid {
    grid-template-columns: 1fr;
  }

  .stats-bubble-field {
    display: grid;
    gap: 18px;
    min-height: auto;
  }

  .stat-bubble {
    position: relative;
    inset: auto;
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .stats-bubble-field.bubbles-popped .stat-bubble {
    display: none;
  }

  .bubble-protection-callout {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 620px);
    margin: 24px auto 0;
    transform: translateY(18px) scale(0.96);
  }

  .stats-bubble-field.bubbles-popped .bubble-protection-callout {
    transform: none;
  }

  .bubble-large {
    width: min(100%, 500px);
  }

  .bubble-medium {
    width: min(92%, 390px);
  }

  .bubble-small {
    width: min(82%, 320px);
  }

  .bubble-mini {
    width: min(72%, 300px);
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .chart-heading,
  .bar-row,
  .spreadsheet-column {
    grid-template-columns: 1fr;
  }

  .chart-grid {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .y-axis-title,
  .x-axis-title {
    margin-left: 94px;
  }

  .spreadsheet-histogram {
    grid-template-columns: repeat(7, minmax(76px, 1fr));
  }

  .chart-heading {
    display: grid;
  }

  .bar-row strong {
    text-align: left;
  }

  .process-timeline::before {
    display: none;
  }

  .process-step {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-bubble {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .stats-bubble-field.bubbles-popped .stat-bubble {
    opacity: 0;
  }

  .bubble-protection-callout {
    transition: none;
  }
}

/* Screenshot-aligned landing page refresh */
.mg-page {
  background: #f3f6f8;
  color: #05070a;
}

.mg-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 10px 32px;
  color: var(--white);
  background: #07172c;
  box-shadow: 0 14px 32px rgba(7, 23, 44, 0.2);
}

.mg-brand {
  display: grid;
  gap: 2px;
  justify-self: start;
}

.mg-brand span {
  color: #a7b5c7;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mg-brand strong {
  color: var(--white);
  font-size: 1.05rem;
}

.mg-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.92rem;
  font-weight: 750;
}

.mg-nav a {
  position: relative;
  color: var(--white);
  padding: 14px 0;
}

.mg-nav a.active {
  color: #55f4d3;
}

.mg-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #55f4d3;
  content: "";
}

.mg-pill-button,
.mg-signin-button,
.mg-signup-button,
.mg-primary-action,
.mg-secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 28px;
  font-weight: 800;
  transition: box-shadow 180ms ease, transform 180ms ease, filter 180ms ease;
}

.mg-pill-button:hover,
.mg-pill-button:focus-visible,
.mg-signin-button:hover,
.mg-signin-button:focus-visible,
.mg-signup-button:hover,
.mg-signup-button:focus-visible,
.mg-primary-action:hover,
.mg-primary-action:focus-visible,
.mg-secondary-action:hover,
.mg-secondary-action:focus-visible,
.button:hover,
.button:focus-visible {
  box-shadow:
    0 12px 26px rgba(7, 23, 44, 0.12),
    0 0 28px rgba(0, 123, 110, 0.28);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.mg-pill-button {
  color: #061124;
  background: #cdf7f2;
}

.mg-pill-button.light {
  background: #cdf7f2;
}

.mg-topbar-actions,
.mg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.mg-topbar-actions {
  justify-self: end;
}

.mg-signin-button {
  border: 1px solid rgba(205, 247, 242, 0.52);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.mg-signin-button.light {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.mg-signup-button {
  border: 1px solid rgba(85, 244, 211, 0.42);
  color: #061124;
  background: #55f4d3;
}

.active-auth {
  box-shadow: 0 0 0 2px rgba(85, 244, 211, 0.28);
}

.mg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
  gap: 56px;
  align-items: center;
  min-height: 500px;
  padding: 82px 32px 76px;
  background: radial-gradient(circle at 76% 48%, rgba(0, 123, 110, 0.1), transparent 34%), #ffffff;
}

.mg-hero-copy {
  max-width: 560px;
}

.mg-hero h1 {
  max-width: 610px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5vw, 4.25rem);
  line-height: 1.03;
}

.mg-hero-copy p {
  max-width: 500px;
  color: #4d5663;
  font-size: 1rem;
  line-height: 1.65;
}

.mg-proof-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #cfd7df;
  border-radius: 999px;
  margin-top: 18px;
  padding: 9px 16px;
  color: #586272;
  background: var(--white);
  font-size: 0.92rem;
}

.mg-proof-pill span {
  color: var(--teal);
  font-weight: 900;
}

.mg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.mg-primary-action {
  color: #06251f;
  background: linear-gradient(180deg, #5df2cf, #35dcb7);
  box-shadow: 0 10px 18px rgba(0, 123, 110, 0.24);
}

.mg-secondary-action {
  border: 1.5px solid #05070a;
  color: #05070a;
  background: var(--white);
}

.mg-hero-visual {
  display: flex;
  justify-content: center;
}

.mg-phone-card {
  width: min(100%, 420px);
  border: 10px solid #07172c;
  border-radius: 34px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 30%, rgba(85, 244, 211, 0.28), transparent 26%),
    radial-gradient(circle at 70% 65%, rgba(116, 67, 255, 0.22), transparent 34%),
    #08182e;
  box-shadow: 0 24px 64px rgba(7, 23, 44, 0.22);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.mg-phone-card:hover {
  box-shadow:
    0 24px 64px rgba(7, 23, 44, 0.22),
    0 0 42px rgba(0, 123, 110, 0.3);
  transform: translateY(-2px);
}

.mg-phone {
  width: 235px;
  min-height: 310px;
  margin: 0 auto;
  border: 10px solid #111827;
  border-radius: 28px;
  padding: 62px 16px 20px;
  color: var(--white);
  background: linear-gradient(150deg, #0d1f3c, #142846);
  transform: rotate(-11deg);
}

.mg-phone-header {
  margin-bottom: 14px;
  color: #b8fff5;
  font-size: 0.72rem;
  font-weight: 900;
}

.mg-alert {
  border: 1px solid rgba(85, 244, 211, 0.3);
  border-radius: 8px;
  padding: 12px;
  background: rgba(2, 8, 23, 0.74);
}

.mg-alert span {
  color: #ff4b59;
  font-size: 0.88rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mg-alert p {
  margin: 8px 0 0;
  color: #d7e2ef;
  font-size: 0.74rem;
}

.mg-phone-button {
  width: fit-content;
  border-radius: 999px;
  margin: 22px auto 0;
  padding: 8px 11px;
  color: #061124;
  background: #cdf7f2;
  font-size: 0.65rem;
  font-weight: 900;
}

.mg-checks {
  padding: 64px 32px 72px;
  background: #eef1f4;
}

.mg-section-title {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 42px;
}

.mg-section-title p {
  margin: 0;
  font-weight: 850;
}

.mg-section-title span {
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: #9cefe2;
}

.mg-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.mg-info-card {
  min-height: 210px;
  border-radius: 8px;
  padding: 48px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(7, 23, 44, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.reveal-box {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 620ms ease,
    transform 620ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.reveal-box.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.mg-info-card:hover,
.mg-info-card:focus-within,
.mg-stat-card:hover,
.mg-stat-card:focus-within,
.loss-chart-card:hover,
.loss-chart-card:focus-within,
.input-card:hover,
.input-card:focus-within,
.result-card:hover,
.result-card:focus-within {
  border-color: rgba(0, 123, 110, 0.45);
  box-shadow:
    0 18px 38px rgba(7, 23, 44, 0.1),
    0 0 34px rgba(0, 123, 110, 0.2);
  transform: translateY(-2px);
}

.mg-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 28px;
  color: var(--navy);
  background: #edfffc;
  font-weight: 950;
}

.mg-info-card h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.mg-info-card p {
  margin: 0;
  color: #4d5663;
  line-height: 1.55;
}

.mg-process {
  padding: 86px 32px 70px;
  background: #ffffff;
}

.mg-data-section {
  padding: 70px 32px 78px;
  background: #ffffff;
}

.mg-stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  max-width: 1060px;
  min-height: 560px;
  margin: 0 auto;
}

.mg-stat-card {
  min-height: 220px;
  border: 1px solid rgba(0, 123, 110, 0.16);
  border-radius: 8px;
  padding: 30px;
  background: #f8fbfc;
  box-shadow: 0 14px 30px rgba(7, 23, 44, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mg-stat-card.dark {
  color: var(--white);
  background: linear-gradient(135deg, #07172c, #102743);
}

.mg-stat-card strong {
  display: block;
  margin-bottom: 22px;
  color: var(--teal);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.mg-stat-card.dark strong {
  color: #86f2e7;
}

.mg-stat-card h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.mg-stat-card p {
  margin: 0;
  color: #4d5663;
  line-height: 1.55;
}

.mg-stat-card.dark p {
  color: #cbd7e6;
}

.mg-stat-bubble {
  --bubble-size: 280px;
  --scatter-x: 0px;
  --scatter-y: 0px;
  --glow-size: 0px;
  display: flex;
  flex: 0 0 var(--bubble-size);
  width: var(--bubble-size);
  height: var(--bubble-size);
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  padding: clamp(18px, 4vw, 48px);
  text-align: center;
  transform: translate(var(--scatter-x), var(--scatter-y));
}

.mg-stat-bubbles .mg-stat-bubble:nth-child(1) {
  --scatter-x: -20px;
  --scatter-y: 4px;
  margin-right: 4px;
}

.mg-stat-bubbles .mg-stat-bubble:nth-child(2) {
  --scatter-x: 22px;
  --scatter-y: 34px;
  margin-top: 24px;
}

.mg-stat-bubbles .mg-stat-bubble:nth-child(3) {
  --scatter-x: 4px;
  --scatter-y: -28px;
  margin-left: -10px;
}

.mg-stat-bubbles .mg-stat-bubble:nth-child(4) {
  --scatter-x: -30px;
  --scatter-y: -12px;
  margin-right: 22px;
}

.mg-stat-bubbles .mg-stat-bubble:nth-child(5) {
  --scatter-x: 16px;
  --scatter-y: -10px;
  margin-left: 38px;
}

.mg-stat-bubbles .mg-stat-bubble:nth-child(6) {
  --scatter-x: -14px;
  --scatter-y: 26px;
  margin-right: 46px;
}

.mg-stat-bubbles .mg-stat-bubble:nth-child(7) {
  --scatter-x: 32px;
  --scatter-y: 8px;
  margin-left: 18px;
}

.mg-stat-bubbles .mg-stat-bubble:nth-child(8) {
  --scatter-x: -34px;
  --scatter-y: -18px;
  margin-right: 12px;
}

.mg-stat-bubbles .mg-stat-bubble:nth-child(9) {
  --scatter-x: 12px;
  --scatter-y: 24px;
  margin-left: 28px;
}

.mg-stat-bubbles .mg-stat-bubble:hover,
.mg-stat-bubbles .mg-stat-bubble:focus-within {
  transform: translate(var(--scatter-x), var(--scatter-y));
}

.mg-stat-bubbles .mg-stat-card.mg-stat-bubble,
.mg-stat-bubbles .mg-stat-card.mg-stat-bubble:hover,
.mg-stat-bubbles .mg-stat-card.mg-stat-bubble:focus-within {
  transition:
    opacity 520ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  transform: translate(var(--scatter-x), var(--scatter-y));
  box-shadow:
    0 14px 30px rgba(7, 23, 44, 0.07),
    0 0 var(--glow-size) rgba(0, 123, 110, 0.26);
}

.bubble-priority-1 {
  --bubble-size: 460px;
}

.bubble-priority-2 {
  --bubble-size: 350px;
}

.bubble-priority-3 {
  --bubble-size: 270px;
}

.bubble-priority-4 {
  --bubble-size: 205px;
}

.bubble-priority-5 {
  --bubble-size: 150px;
  padding: 18px;
}

.bubble-priority-1 strong {
  font-size: clamp(3.7rem, 7vw, 5rem);
}

.bubble-priority-2 strong {
  font-size: clamp(3rem, 5vw, 4rem);
}

.bubble-priority-3 strong {
  font-size: clamp(2.35rem, 4vw, 3.3rem);
}

.bubble-priority-4 strong {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
}

.bubble-priority-5 strong {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.bubble-priority-5 h2 {
  font-size: 0.78rem;
}

.bubble-priority-5 p {
  display: none;
}

.bubble-priority-4 p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mg-stat-bubble strong {
  margin-bottom: clamp(8px, 1.5vw, 18px);
}

.mg-stat-bubble h2 {
  max-width: 78%;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(0.82rem, 1.35vw, 1.12rem);
}

.mg-stat-bubble p {
  max-width: 78%;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(0.76rem, 1.05vw, 0.95rem);
  line-height: 1.35;
}

.mg-data-chart {
  max-width: 1180px;
  margin: 28px auto 0;
}

.mg-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.mg-steps article {
  position: relative;
}

.mg-steps article:not(:last-child)::after {
  position: absolute;
  top: 36px;
  right: -70px;
  width: 120px;
  border-top: 2px dashed #7f8997;
  content: "";
}

.mg-step-icon {
  display: inline-flex;
  width: 74px;
  height: 74px;
  align-items: center;
  justify-content: center;
  border: 2px solid #05070a;
  border-radius: 50%;
  margin-bottom: 18px;
  font-size: 1.45rem;
}

.mg-steps span {
  display: block;
  width: fit-content;
  border-radius: 999px;
  margin: 0 auto 22px;
  padding: 6px 12px;
  color: var(--white);
  background: #07172c;
  font-size: 0.82rem;
  font-weight: 900;
}

.mg-steps h2 {
  font-size: 0.96rem;
}

.mg-steps p {
  max-width: 280px;
  margin: 0 auto;
  color: #1f2732;
  font-size: 1.05rem;
  line-height: 1.6;
}

.mg-cta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  border-radius: 8px;
  margin: 0 auto 78px;
  padding: 54px 76px;
  color: var(--white);
  background: linear-gradient(135deg, #07172c, #102743);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.mg-cta:hover,
.mg-cta:focus-within {
  box-shadow:
    0 20px 48px rgba(7, 23, 44, 0.16),
    0 0 42px rgba(0, 123, 110, 0.22);
  transform: translateY(-2px);
}

.mg-cta h2 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.mg-cta p,
.mg-rating span {
  margin: 0;
  color: #aeb9c8;
}

.mg-rating {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.mg-rating strong {
  color: #ffd02f;
  letter-spacing: 0;
}

.mg-footer {
  display: grid;
  grid-template-columns: 2fr 0.7fr 0.7fr;
  gap: 48px;
  border-radius: 44px 44px 0 0;
  padding: 70px 32px 24px;
  color: var(--white);
  background: #07172c;
}

.mg-footer > div,
.mg-footer small {
  max-width: 1180px;
}

.mg-footer strong {
  display: block;
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.mg-footer p {
  max-width: 280px;
  color: #aeb9c8;
  line-height: 1.55;
}

.mg-footer h2 {
  color: #55f4d3;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.mg-footer a {
  display: block;
  margin-top: 14px;
  color: #aeb9c8;
}

.mg-footer small {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  color: #aeb9c8;
}

.mg-analyze-shell {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 64px 18px;
}

.mg-analyze-intro {
  margin-bottom: 24px;
  text-align: center;
}

.mg-analyze-intro h1 {
  max-width: 700px;
  margin: 0 auto 16px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.04;
}

.mg-analyze-intro p:not(.eyebrow) {
  max-width: 600px;
  margin: 0 auto;
  color: #4d5663;
  line-height: 1.6;
}

.mg-analyze-card {
  margin: 0;
}

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

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

.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(7, 23, 44, 0.1);
}

.auth-card .card-heading {
  margin-bottom: 24px;
}

.auth-card h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.auth-copy,
.auth-switch {
  color: var(--muted);
  line-height: 1.55;
}

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--teal);
  font-weight: 900;
}

.auth-form,
.form-field {
  display: grid;
  gap: 14px;
}

.auth-grid {
  display: grid;
  gap: 14px;
}

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

.card-grid {
  grid-template-columns: 1fr 0.7fr 0.9fr;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  line-height: 1.45;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 123, 110, 0.16);
}

.demo-payment {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(184, 108, 0, 0.28);
  border-radius: 8px;
  padding: 18px;
  background: #fffaf2;
}

.demo-payment h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.demo-payment p {
  margin-bottom: 0;
  color: #72511b;
  line-height: 1.45;
}

.care-contact-section {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(0, 123, 110, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: #f4fbfa;
}

.care-contact-section h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.auth-status {
  border-radius: 8px;
  margin: 2px 0 0;
  padding: 12px 14px;
  font-weight: 850;
  line-height: 1.45;
}

.auth-status.success {
  color: #0f5132;
  background: #dff7ea;
}

.auth-status.error {
  color: var(--red);
  background: #fff1f1;
}

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

.overview-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.overview-intro h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.04;
}

.overview-intro p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.overview-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.overview-metric-card,
.overview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(13, 31, 60, 0.08);
}

.overview-metric-card {
  padding: 20px;
}

.overview-metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.overview-metric-card strong {
  display: block;
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.overview-metric-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.overview-metric-card.warning strong {
  color: var(--red);
}

.overview-metric-card.safe strong {
  color: var(--green);
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.overview-panel {
  padding: 22px;
}

.overview-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.overview-panel-heading.compact {
  margin-top: 22px;
  margin-bottom: 12px;
}

.overview-panel-heading h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.overview-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--white);
  background: var(--teal);
  font-weight: 850;
  white-space: nowrap;
}

.overview-load-status {
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--white);
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(13, 31, 60, 0.05);
}

.overview-load-status.success {
  color: #0f5132;
  background: #dff7ea;
}

.overview-load-status.error {
  color: var(--red);
  background: #fff1f1;
}

.overview-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.overview-table {
  min-width: 760px;
}

.more-analytics {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 6px;
}

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

.analytics-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 123, 110, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: #fbfdff;
}

.analytics-card.warning {
  border-color: rgba(184, 108, 0, 0.26);
  background: #fffaf2;
}

.analytics-card.danger {
  border-color: rgba(166, 32, 32, 0.26);
  background: #fff7f7;
}

.analytics-card.safe {
  background: #f2fbf6;
}

.analytics-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-card strong {
  display: block;
  margin: 14px 0 10px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.analytics-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.scam-trend-panel {
  margin-bottom: 18px;
}

.scam-line-chart {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.scam-chart-y-axis {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  align-items: start;
  min-height: 260px;
  padding: 10px 0 48px;
}

.scam-chart-y-axis span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
}

.scam-chart-plot {
  min-width: 0;
}

.scam-chart-plot svg {
  display: block;
  width: 100%;
  height: 260px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(180deg, rgba(166, 32, 32, 0.04), rgba(0, 123, 110, 0.06));
}

.scam-grid-line {
  stroke: rgba(216, 224, 234, 0.95);
  stroke-width: 2;
}

#scamTrendLine {
  stroke: var(--red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scam-point {
  fill: var(--white);
  stroke: var(--red);
  stroke-width: 3;
}

.scam-point.active {
  fill: var(--red);
}

.scam-chart-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.scam-chart-labels span {
  display: grid;
  gap: 4px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.scam-chart-labels small {
  color: var(--muted);
  font-size: 0.76rem;
}

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

.notification-item {
  border: 1px solid rgba(0, 123, 110, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.notification-item.high {
  border-color: rgba(166, 32, 32, 0.24);
  background: #fff7f7;
}

.notification-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-item strong {
  display: block;
  margin: 7px 0;
  color: var(--navy);
}

.notification-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pattern-grid article {
  border: 1px solid rgba(0, 123, 110, 0.2);
  border-radius: 8px;
  padding: 16px;
  background: var(--teal-2);
}

.pattern-grid strong,
.pattern-grid span {
  display: block;
}

.pattern-grid strong {
  color: var(--navy);
  line-height: 1.25;
}

.pattern-grid span {
  margin-top: 10px;
  color: var(--teal);
  font-weight: 900;
}

@media (max-width: 920px) {
  .mg-topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .mg-nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .mg-pill-button {
    justify-self: start;
  }

  .mg-topbar-actions,
  .mg-cta-actions {
    justify-content: flex-start;
  }

  .mg-hero,
  .mg-card-grid,
  .mg-steps,
  .mg-cta,
  .mg-footer {
    grid-template-columns: 1fr;
  }

  .mg-stat-grid {
    gap: 12px;
    min-height: auto;
  }

  .mg-stat-bubbles .mg-stat-bubble {
    --scatter-x: 0px;
    --scatter-y: 0px;
    margin-right: 0;
    margin-left: 0;
    margin-top: 0;
  }

  .bubble-priority-1 {
    --bubble-size: min(82vw, 360px);
  }

  .bubble-priority-2 {
    --bubble-size: min(70vw, 285px);
  }

  .bubble-priority-3 {
    --bubble-size: min(60vw, 235px);
  }

  .bubble-priority-4 {
    --bubble-size: min(52vw, 190px);
  }

  .bubble-priority-5 {
    --bubble-size: min(44vw, 145px);
  }

  .mg-steps article::after {
    display: none;
  }

  .mg-cta {
    margin-right: 18px;
    margin-left: 18px;
    padding: 34px 24px;
  }

  .mg-info-card {
    padding: 32px;
  }

  .two-column,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    padding-top: 34px;
  }

  .overview-summary-grid,
  .overview-layout,
  .pattern-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .overview-shell {
    padding-top: 34px;
  }

  .overview-panel-heading {
    display: grid;
  }

  .scam-line-chart {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .scam-chart-labels {
    gap: 4px;
  }

  .scam-chart-labels span {
    font-size: 0.72rem;
  }
}

/* Final dark theme cascade: keep this after the legacy ScamGuard rules. */
.mg-page,
.portal-body {
  color: var(--ink);
  background:
    radial-gradient(circle at center, rgba(255, 134, 24, 0.11) 0, rgba(255, 134, 24, 0.11) 1px, transparent 1px),
    linear-gradient(180deg, #0b1016 0%, #0e1319 100%);
  background-size: 16px 16px, auto;
}

.mg-page::before {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 66% 18%, rgba(255, 134, 24, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 12%);
  content: "";
  pointer-events: none;
}

.mg-page main {
  position: relative;
  z-index: 1;
}

.mg-topbar {
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 134, 24, 0.18);
  background: rgba(12, 16, 22, 0.9);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.mg-brand strong,
.mg-footer strong,
.mg-footer h2,
.overview-panel-heading h2,
.card-heading h1,
.auth-card h1,
.overview-intro h1,
.mg-analyze-intro h1,
.mg-hero h1,
.mg-info-card h2,
.mg-stat-card h2,
.mg-steps h2,
.care-contact-section h2,
.demo-payment h2,
.decision-description strong,
.voice-detail strong,
.voice-score-grid span,
.notification-item strong,
.pattern-grid strong,
.bar-label,
.spreadsheet-label,
.scam-chart-labels span {
  color: var(--ink);
}

h1,
h2,
h3,
.mg-brand strong {
  font-family: "Barlow Condensed", Inter, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.mg-brand span,
.mg-nav a,
.mg-footer p,
.mg-footer a,
.auth-copy,
.auth-switch,
.overview-intro p:not(.eyebrow),
.mg-analyze-intro p:not(.eyebrow),
.mg-hero-copy p,
.mg-info-card p,
.mg-stat-card p,
.mg-steps p,
.overview-metric-card p,
.analytics-card p,
.notification-item p,
.demo-payment p,
.care-contact-section p,
.input-row,
.result-topline,
.decision-description p,
.voice-file-note,
.voice-detail p,
.mg-cta p,
.mg-rating span {
  color: var(--muted);
}

.eyebrow,
.mg-section-title p,
.overview-metric-card span,
.analytics-card span,
.notification-item span,
.mg-brand span {
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mg-nav a.active,
.auth-switch a,
.mg-proof-pill span,
.mg-stat-card strong,
.overview-metric-card strong,
.analytics-card strong,
.pattern-grid span,
.chart-tooltip strong,
.qr-note,
.spreadsheet-value,
.bar-row strong,
.scam-chart-labels small {
  color: var(--accent);
}

.mg-nav a.active::after,
.mg-section-title span {
  background: var(--accent);
}

.mg-pill-button,
.mg-signup-button,
.mg-primary-action,
.button.primary,
.primary,
.overview-action,
.analysis-tab.active,
.analysis-tab:hover,
.analysis-tab:focus-visible,
.metric-button.active {
  color: #16100a;
  background: linear-gradient(90deg, #ff7b16 0%, #ff9226 100%);
  box-shadow: 0 0 24px rgba(255, 134, 24, 0.25);
}

.mg-signin-button,
.mg-secondary-action,
.button.secondary,
.secondary,
.analysis-tab,
.metric-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(31, 37, 46, 0.9), rgba(24, 29, 37, 0.9));
}

.mg-hero,
.mg-checks,
.mg-process,
.mg-data-section {
  background-color: transparent;
}

.mg-hero {
  background-image: radial-gradient(circle, rgba(255, 134, 24, 0.17) 0.8px, transparent 0.8px);
  background-size: 16px 16px;
}

.mg-proof-pill,
.mg-info-card,
.mg-stat-card,
.loss-chart-card,
.input-card,
.result-card,
.loading-card,
.error-card,
.auth-card,
.overview-metric-card,
.overview-panel,
.analytics-card,
.notification-item,
.pattern-grid article,
.decision-description,
.recommendation,
.voice-score-grid div,
.voice-detail,
.demo-payment,
.care-contact-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(29, 34, 42, 0.96), rgba(24, 29, 37, 0.98));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.mg-stat-card.dark,
.mg-cta,
.mg-footer {
  background: linear-gradient(180deg, rgba(9, 12, 17, 0.98), rgba(11, 15, 21, 0.98));
}

.mg-phone-card {
  border-color: #1b2028;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 134, 24, 0.2), transparent 26%),
    radial-gradient(circle at 70% 65%, rgba(255, 146, 38, 0.14), transparent 34%),
    #11161d;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.mg-phone {
  background: linear-gradient(150deg, #1b2028, #11161d);
}

.mg-alert,
.mg-phone-button,
.mg-icon,
.mg-step-icon,
.tag {
  border-color: rgba(255, 134, 24, 0.28);
  color: var(--accent);
  background: rgba(255, 134, 24, 0.12);
}

.mg-steps span,
.verdict-badge,
.status,
.chart-tooltip {
  color: #16100a;
  background: var(--accent);
}

.form-field input,
.form-field textarea,
textarea,
input[type="file"],
.qr-result-section code {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  background: #11161d;
}

.voice-score-grid strong,
.voice-detail p {
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus,
textarea:focus,
input[type="file"]:focus,
.analysis-tab:focus-visible,
.spreadsheet-hitbox:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgba(255, 134, 24, 0.2);
}

.mg-info-card:hover,
.mg-info-card:focus-within,
.mg-stat-card:hover,
.mg-stat-card:focus-within,
.loss-chart-card:hover,
.loss-chart-card:focus-within,
.input-card:hover,
.input-card:focus-within,
.result-card:hover,
.result-card:focus-within,
.auth-card:hover,
.auth-card:focus-within,
.overview-panel:hover,
.overview-panel:focus-within,
.overview-metric-card:hover,
.overview-metric-card:focus-within {
  border-color: rgba(255, 134, 24, 0.45);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.24),
    0 0 34px rgba(255, 134, 24, 0.2);
}

.spreadsheet-track,
.bar-track,
.scam-chart-plot svg {
  border-color: rgba(255, 134, 24, 0.42);
  background: linear-gradient(180deg, rgba(255, 134, 24, 0.05), rgba(255, 134, 24, 0.1));
}

.spreadsheet-fill,
.bar-fill,
.bar-fill.highlight,
.bar-fill.senior {
  background: linear-gradient(180deg, #ff9226, #ff7b16);
}

/* 2026 suite alignment and HomeGuard explainer */
.mg-topbar {
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, auto) minmax(220px, 0.9fr);
}

.mg-nav {
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  min-width: 0;
}

.mg-nav a {
  white-space: nowrap;
}

.suite-page main,
.homeguard-page main {
  position: relative;
  z-index: 1;
}

.suite-hero,
.suite-product-grid,
.suite-flow-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.suite-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(54px, 8vw, 92px) 0 clamp(44px, 7vw, 78px);
}

.suite-hero-copy h1 {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--ink);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.suite-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.78;
}

.suite-signal-panel,
.suite-product-card,
.homeguard-hero,
.homeguard-step,
.homeguard-principles article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.suite-signal-panel {
  display: grid;
  gap: 16px;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
}

.suite-signal-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.suite-signal-row span,
.homeguard-step-head span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #160c03;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.suite-signal-row strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
}

.suite-signal-row p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.suite-signal-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.suite-signal-meter span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.suite-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  padding-bottom: 72px;
}

.suite-product-card {
  display: grid;
  gap: 16px;
  align-content: start;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 36px);
}

.suite-product-card.primary {
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 134, 24, 0.12), transparent 28%),
    var(--panel);
}

.suite-product-card h2,
.homeguard-step h2,
.homeguard-principles h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Barlow Condensed", Inter, sans-serif;
  letter-spacing: 0;
}

.suite-product-card h2 {
  font-size: clamp(36px, 5vw, 56px);
}

.suite-product-card p,
.suite-product-card li,
.homeguard-step p,
.homeguard-principles p {
  color: var(--muted);
  line-height: 1.72;
}

.suite-product-card p {
  margin: 0;
}

.suite-product-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.suite-product-card .mg-primary-action,
.suite-product-card .mg-secondary-action {
  width: fit-content;
  margin-top: 8px;
}

.suite-flow-section {
  padding-bottom: 80px;
}

.suite-steps {
  padding: 0;
}

.homeguard-wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 74px) 0 84px;
}

.homeguard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.homeguard-kicker::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 134, 24, 0.58);
  content: "";
}

.homeguard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 30px;
  align-items: center;
  border-radius: 30px;
  padding: clamp(28px, 5vw, 48px);
  margin-bottom: 26px;
}

.homeguard-title {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 74px);
  text-wrap: balance;
}

.homeguard-device {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.homeguard-camera {
  position: relative;
  width: min(210px, 54vw);
  aspect-ratio: 1.08;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 46%, var(--navy) 0 18%, #1e2933 19% 30%, transparent 31%),
    linear-gradient(135deg, #f7fafb, #cfd7dd);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.homeguard-camera::before {
  position: absolute;
  inset: 21% 28%;
  border-radius: 999px;
  background: radial-gradient(circle, #2b6fb8 0 16%, var(--navy) 17% 55%, #27323d 56%);
  content: "";
}

.homeguard-camera span {
  position: absolute;
  right: 48%;
  bottom: 18%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 134, 24, 0.8);
}

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

.homeguard-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.homeguard-step {
  display: grid;
  gap: 16px;
  border-radius: 22px;
  padding: 20px;
}

.homeguard-step-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.homeguard-step h2 {
  font-size: 1.45rem;
  line-height: 1.08;
}

.homeguard-scene {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.045);
  background-size: 22px 22px;
}

.person-outline {
  position: absolute;
  inset: 24px 52px 20px;
  border: 3px solid rgba(255, 134, 24, 0.75);
  border-radius: 10px;
}

.person-outline::before {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #d8c7a8;
  transform: translateX(-50%);
  content: "";
}

.person-outline::after {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 42px;
  height: 74px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(#b7d1be, #66725f);
  transform: translateX(-50%);
  content: "";
}

.pose-stick {
  position: absolute;
  inset: 22px 42px;
  background:
    radial-gradient(circle at 50% 12%, #d9fff2 0 5px, transparent 6px),
    radial-gradient(circle at 40% 30%, #d9fff2 0 5px, transparent 6px),
    radial-gradient(circle at 60% 30%, #d9fff2 0 5px, transparent 6px),
    radial-gradient(circle at 50% 48%, #d9fff2 0 5px, transparent 6px),
    radial-gradient(circle at 38% 68%, #d9fff2 0 5px, transparent 6px),
    radial-gradient(circle at 62% 68%, #d9fff2 0 5px, transparent 6px);
}

.pose-stick::before {
  position: absolute;
  inset: 16px 34px 24px;
  border: 3px solid rgba(255, 134, 24, 0.72);
  border-radius: 50% 50% 42% 42%;
  clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%);
  content: "";
}

.motion-chart,
.angle-chart {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 52px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, transparent 18%, rgba(255, 134, 24, 0.88) 19% 22%, transparent 23% 38%, rgba(255, 134, 24, 0.88) 39% 42%, transparent 43%),
    rgba(255, 255, 255, 0.05);
}

.motion-chart {
  top: 28px;
}

.angle-chart {
  bottom: 28px;
  background:
    linear-gradient(150deg, transparent 20%, rgba(114, 166, 255, 0.9) 21% 24%, transparent 25% 44%, rgba(114, 166, 255, 0.9) 45% 48%, transparent 49%),
    rgba(255, 255, 255, 0.05);
}

.alert-scene {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
}

.fall-alert {
  display: grid;
  place-items: center;
  width: 84px;
  height: 72px;
  color: #fff;
  background: #ef3d24;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  font-size: 42px;
  font-weight: 900;
}

.alert-scene span {
  color: #ff6d58;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.homeguard-step > strong {
  color: var(--accent);
}

.homeguard-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.homeguard-principles article {
  border-radius: 20px;
  padding: 24px;
}

.homeguard-principles span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.homeguard-principles h2 {
  margin-top: 10px;
  font-size: 1.7rem;
}

@media (max-width: 1100px) {
  .mg-topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 12px;
    padding: 14px 20px;
  }

  .mg-brand,
  .mg-topbar-actions {
    justify-self: start;
  }

  .mg-nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mg-nav::-webkit-scrollbar {
    display: none;
  }

  .mg-topbar-actions {
    justify-content: flex-start;
  }

  .suite-hero,
  .suite-product-grid,
  .homeguard-hero,
  .homeguard-flow,
  .homeguard-principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mg-topbar {
    position: relative;
  }

  .mg-brand strong {
    font-size: 1rem;
  }

  .mg-nav {
    gap: 10px;
  }

  .mg-nav a {
    min-height: 38px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.82rem;
  }

  .mg-nav a.active::after {
    display: none;
  }

  .mg-topbar-actions {
    width: 100%;
  }

  .mg-topbar-actions a {
    flex: 1 1 130px;
    padding-inline: 14px;
  }

  .suite-hero,
  .suite-product-grid,
  .suite-flow-section,
  .homeguard-wrap {
    width: min(100% - 28px, 1180px);
  }

  .suite-product-card .mg-primary-action,
  .suite-product-card .mg-secondary-action {
    width: 100%;
  }

  .homeguard-hero {
    padding: 24px;
  }

  .homeguard-title {
    font-size: clamp(36px, 12vw, 52px);
  }
}
