:root {
  color-scheme: dark;
  --bg0: #03101a;
  --bg1: #081c29;
  --bg2: #0f2c3b;
  --surface: rgba(13, 22, 34, 0.92);
  --surface-strong: rgba(16, 26, 40, 0.96);
  --surface-elevated: rgba(20, 31, 48, 0.98);
  --text-primary: #f7fbff;
  --text-secondary: #becddd;
  --text-muted: #8090a4;
  --mint: #8ff6c8;
  --sky: #7fd7ff;
  --lime: #c4ff72;
  --sand: #f7c981;
  --coral: #ff9276;
  --violet: #c6b2ff;
  --radius-card: 32px;
  --radius-hero: 38px;
  --radius-chip: 999px;
  --shadow-card: 0 28px 80px rgba(0, 0, 0, 0.36);
  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(143, 246, 200, 0.22), transparent 24%),
    radial-gradient(circle at 50% 18%, rgba(127, 215, 255, 0.14), transparent 26%),
    radial-gradient(circle at bottom center, rgba(198, 178, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #12383e 0%, var(--bg2) 17%, var(--bg1) 52%, var(--bg0) 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid rgba(117, 216, 255, 0.9);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
  padding:
    max(18px, env(safe-area-inset-top))
    14px
    max(18px, env(safe-area-inset-bottom))
    14px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: max(12px, env(safe-area-inset-top));
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(117, 216, 255, 0.95);
  color: #04101a;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-140%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.app-frame {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: calc(100vh - 24px);
  border-radius: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at top center, rgba(143, 246, 200, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(9, 29, 40, 0.98), rgba(4, 14, 24, 0.98));
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 0;
}

.pill-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  backdrop-filter: blur(16px);
}

.pill-button--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.pill-button--brand {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 78%),
    rgba(255, 255, 255, 0.05);
}

.screen-content {
  padding: 6px 18px 114px;
}

.screen-content--auth {
  padding-top: 28px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.mode-banner {
  display: grid;
  gap: 12px;
  margin: 4px 0 14px;
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(198, 178, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(198, 178, 255, 0.14), transparent 34%),
    rgba(17, 24, 38, 0.82);
}

.mode-banner__eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}

.mode-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.eyebrow,
.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-block {
  padding-top: 4px;
  margin-bottom: 14px;
  animation: rise-in 260ms ease both;
}

.hero-block--compact h1 {
  font-size: clamp(1.8rem, 7.2vw, 2.85rem);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-meta--quiet {
  justify-content: flex-start;
}

.hero-meta__copy {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(223, 232, 243, 0.72);
}

.hero-meta__action {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #102132;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-block h1,
.loading-state h1 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 8.9vw, 3.9rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.34;
  max-width: 34ch;
}

.window-label {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 229, 243, 0.76);
}

.hero-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.card {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 28, 42, 0.96), rgba(11, 18, 29, 0.92));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  animation: rise-in 220ms ease both;
}

.card--hero {
  border-radius: var(--radius-hero);
  background:
    radial-gradient(circle at bottom right, rgba(127, 215, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(24, 36, 52, 0.98), rgba(16, 24, 36, 0.96));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card--spotlight {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card--spotlight::after {
  content: "";
  position: absolute;
  inset: auto 10% 12% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 255, 213, 0.18), transparent 68%);
  pointer-events: none;
}

.card--minimal {
  background: rgba(12, 18, 29, 0.78);
}

.card--import {
  outline: 1px solid rgba(117, 216, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(127, 215, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(18, 28, 42, 0.98), rgba(9, 16, 28, 0.96));
}

.card h3,
.card-headline {
  margin: 5px 0 8px;
  font-size: clamp(1.2rem, 4.7vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-family: var(--font-display);
}

.card p {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.38;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.accent-rail {
  display: flex;
  gap: 8px;
  margin: 18px 0 6px;
}

.accent-pill {
  display: inline-block;
  width: 66px;
  height: 18px;
  border-radius: 999px;
}

.accent-pill--mint {
  background: linear-gradient(90deg, rgba(141, 244, 187, 0.96), rgba(129, 255, 218, 0.96));
}

.accent-pill--sky {
  background: linear-gradient(90deg, rgba(100, 193, 242, 0.96), rgba(117, 216, 255, 0.96));
}

.accent-pill--sand {
  background: linear-gradient(90deg, rgba(255, 220, 146, 0.96), rgba(255, 205, 120, 0.96));
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-chip);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chip-button {
  border: 0;
}

.chip--mint {
  color: var(--mint);
  background: rgba(147, 255, 213, 0.12);
}

.chip--sky {
  color: var(--sky);
  background: rgba(117, 216, 255, 0.12);
}

.chip--lime {
  color: var(--lime);
  background: rgba(188, 255, 109, 0.12);
}

.chip--sand {
  color: var(--sand);
  background: rgba(255, 214, 153, 0.14);
}

.chip--coral {
  color: var(--coral);
  background: rgba(255, 150, 124, 0.14);
}

.chip--violet {
  color: var(--violet);
  background: rgba(201, 175, 255, 0.14);
}

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

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.segment {
  flex: 1 1 0;
  border: 0;
  border-radius: 18px;
  padding: 10px 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.segment--active {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 76%),
    rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.trust-stack,
.list-stack,
.evidence-stack,
.ladder {
  display: grid;
  gap: 12px;
}

.trust-row,
.ladder-row {
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  color: var(--text-secondary);
}

.trust-row strong,
.ladder-row strong {
  color: var(--text-primary);
  text-align: right;
}

.trust-bar,
.ladder-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.trust-bar__fill,
.ladder-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.92));
}

.trust-bar__fill--mint {
  background: linear-gradient(90deg, rgba(147, 255, 213, 0.7), rgba(255, 255, 255, 0.94));
}

.trust-bar__fill--sky {
  background: linear-gradient(90deg, rgba(117, 216, 255, 0.78), rgba(255, 255, 255, 0.94));
}

.trust-bar__fill--lime {
  background: linear-gradient(90deg, rgba(188, 255, 109, 0.78), rgba(255, 255, 255, 0.94));
}

.trust-bar__fill--coral {
  background: linear-gradient(90deg, rgba(255, 150, 124, 0.78), rgba(255, 255, 255, 0.94));
}

.ladder-bar__fill--active {
  background: linear-gradient(90deg, rgba(117, 216, 255, 0.85), rgba(147, 255, 213, 0.95));
}

.inline-action {
  margin-top: 14px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--violet);
  font-weight: 700;
  text-align: left;
}

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

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

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

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

.stat-tile {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.stat-tile--light {
  background: rgba(255, 255, 255, 0.96);
  color: #132133;
}

.stat-tile span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-tile--light span {
  color: #91a1b5;
}

.stat-tile strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 0.95;
}

.stat-tile p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

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

.metric-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.plan-block-grid,
.calc-grid {
  display: grid;
  gap: 12px;
}

.plan-block-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

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

.metric-card {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.1;
}

.plan-block {
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.045);
}

.plan-block span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.plan-block strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.15;
}

.plan-block p {
  margin-top: 8px;
}

.plan-block--mint {
  background: rgba(147, 255, 213, 0.08);
}

.plan-block--sky {
  background: rgba(117, 216, 255, 0.08);
}

.plan-block--sand {
  background: rgba(255, 214, 153, 0.08);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: end;
}

.hero-split__aside {
  display: grid;
  gap: 12px;
}

.hero-split__aside p {
  margin: 0;
}

.mega-number {
  margin: 8px 0 8px;
  font-size: clamp(3rem, 16vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.list-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.list-row h4 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.2;
}

.list-row p {
  margin: 0;
  font-size: 14px;
}

.list-row__actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.selector-row {
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  text-align: left;
}

.selector-row strong {
  color: var(--text-primary);
  text-align: right;
}

.selector-row--active {
  border-color: rgba(117, 216, 255, 0.24);
  background:
    radial-gradient(circle at top, rgba(117, 216, 255, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.05);
}

.mini-trend {
  margin-top: 8px;
  min-height: 66px;
}

.mini-trend svg {
  display: block;
  width: 100%;
  height: 66px;
}

.trusted-bars,
.round-summary-stack {
  display: grid;
  gap: 12px;
}

.trusted-bar-row {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.trusted-bar-row strong {
  color: var(--text-primary);
  text-align: right;
}

.trusted-bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.trusted-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.trusted-bar-fill--mint {
  background: linear-gradient(90deg, rgba(143, 246, 200, 0.92), rgba(200, 255, 234, 0.98));
}

.trusted-bar-fill--sky {
  background: linear-gradient(90deg, rgba(127, 215, 255, 0.92), rgba(221, 245, 255, 0.98));
}

.trusted-bar-fill--lime {
  background: linear-gradient(90deg, rgba(196, 255, 114, 0.92), rgba(241, 255, 211, 0.98));
}

.trusted-bar-fill--coral {
  background: linear-gradient(90deg, rgba(255, 146, 118, 0.92), rgba(255, 220, 210, 0.98));
}

.round-summary-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: #132133;
  text-align: left;
}

.round-summary-card h4 {
  margin: 0 0 4px;
  font-size: 17px;
}

.round-summary-card p,
.round-summary-card strong {
  margin: 0;
}

.round-summary-card p {
  color: #607287;
  font-size: 13px;
  line-height: 1.35;
}

.round-summary-card strong {
  color: #7fd7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ask-form {
  display: grid;
  gap: 12px;
}

.question-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.question-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.ask-form textarea,
.field select,
.field input {
  width: 100%;
  min-height: 56px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  padding: 16px 18px;
}

.ask-form textarea {
  resize: vertical;
  min-height: 86px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button--primary {
  background: linear-gradient(90deg, rgba(117, 216, 255, 0.9), rgba(147, 255, 213, 0.9));
  color: #05111c;
  box-shadow: 0 16px 32px rgba(86, 190, 201, 0.18);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.button--small {
  padding: 9px 12px;
  font-size: 12px;
}

.button--inline {
  margin-top: 16px;
}

.file-drop {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 18px;
  border-radius: 24px;
  border: 1px dashed rgba(117, 216, 255, 0.26);
  background: rgba(117, 216, 255, 0.04);
  align-content: center;
}

.repair-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

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

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

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

.round-entry-note {
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.round-entry-note p {
  margin-top: 8px;
  font-size: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.auth-form {
  margin-top: 18px;
  gap: 14px;
}

.field span,
.checkbox span,
.status-pill,
.import-result h4 {
  font-size: 13px;
  font-weight: 700;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
}

.status-pill {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.status-pill--complete,
.status-pill--partial_complete {
  color: var(--mint);
  background: rgba(147, 255, 213, 0.12);
}

.status-pill--needs_repair {
  color: var(--sand);
  background: rgba(255, 214, 153, 0.12);
}

.status-pill--failed {
  color: var(--coral);
  background: rgba(255, 150, 124, 0.12);
}

.import-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.import-result {
  margin: 18px 0 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(147, 255, 213, 0.09);
  border: 1px solid rgba(147, 255, 213, 0.14);
}

.import-result--warning {
  background: rgba(255, 214, 153, 0.08);
  border-color: rgba(255, 214, 153, 0.16);
}

.warning-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.error-copy {
  color: var(--coral);
}

.screen-content--auth .card {
  margin-bottom: 0;
}

.evidence-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #101724;
  box-shadow: 0 10px 22px rgba(6, 12, 18, 0.12);
}

.evidence-card h4 {
  margin: 0;
  font-size: 15px;
}

.evidence-card span {
  font-size: 13px;
  font-weight: 700;
}

.evidence-card p {
  margin: 10px 0 0;
  color: #182334;
  font-size: 15px;
}

.evidence-card--sky h4,
.evidence-card--sky span {
  color: #4ab4e5;
}

.evidence-card--mint h4,
.evidence-card--mint span {
  color: #2dbe8c;
}

.evidence-card--coral h4,
.evidence-card--coral span {
  color: #e76e58;
}

.evidence-card--sand h4,
.evidence-card--sand span {
  color: #b98b3e;
}

.evidence-card--violet h4,
.evidence-card--violet span {
  color: #7d61d9;
}

.hole-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.detail-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.detail-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.detail-card__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-card--mint {
  background: rgba(143, 246, 200, 0.08);
}

.detail-card--sand {
  background: rgba(247, 201, 129, 0.08);
}

.clip-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.clip-strip::-webkit-scrollbar {
  display: none;
}

.clip-card {
  min-height: 92px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #132133;
  box-shadow: 0 10px 24px rgba(6, 12, 18, 0.12);
}

.clip-card span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8393a8;
}

.clip-card strong {
  display: block;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.25;
}

.trust-ring {
  --ring-color: var(--mint);
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(8, 14, 22, 1) 0 52%, transparent 53%),
    conic-gradient(var(--ring-color) calc(var(--trust-score) * 1%), rgba(255, 255, 255, 0.08) 0);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.22),
    inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.trust-ring--mint {
  --ring-color: var(--mint);
}

.trust-ring--sky {
  --ring-color: var(--sky);
}

.trust-ring__inner {
  width: 78px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.98), rgba(15, 24, 36, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.trust-ring__inner strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 0.95;
}

.trust-ring__inner span {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card--nebula {
  overflow: hidden;
}

.nebula {
  position: relative;
  margin: 16px 0 14px;
  aspect-ratio: 1.12;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at center, rgba(143, 246, 200, 0.07), transparent 36%),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.nebula__ring,
.nebula__axis,
.nebula__dot {
  position: absolute;
}

.nebula__ring {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nebula__ring--outer {
  width: 78%;
  height: 78%;
}

.nebula__ring--middle {
  width: 52%;
  height: 52%;
}

.nebula__ring--inner {
  width: 26%;
  height: 26%;
}

.nebula__axis {
  background: rgba(255, 255, 255, 0.42);
}

.nebula__axis--x {
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.nebula__axis--y {
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

.nebula__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.nebula__dot--mint {
  background: var(--mint);
}

.nebula__dot--sky {
  background: var(--sky);
}

.nebula__dot--lime {
  background: var(--lime);
}

.nebula__dot--sand {
  background: var(--sand);
}

.nebula__dot--coral {
  background: var(--coral);
}

.leak-stack {
  display: grid;
  gap: 12px;
}

.leak-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 150, 124, 0.08), rgba(255, 255, 255, 0.03));
}

.leak-card h4 {
  margin: 0;
  font-size: 1rem;
}

.leak-card strong {
  color: var(--coral);
}

.leak-card p {
  margin-top: 10px;
}

.hole-card {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.score-header {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 10px;
}

.score-header__score {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 16vw, 5.2rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.score-header__meta {
  display: grid;
  gap: 6px;
  padding-bottom: 8px;
}

.score-header__meta strong {
  font-size: 28px;
  line-height: 1;
}

.score-header__meta span {
  color: var(--sky);
  font-size: 14px;
  font-weight: 800;
}

.hole-card span,
.hole-card small {
  display: block;
  color: var(--text-muted);
}

.hole-card strong {
  display: block;
  margin: 6px 0;
  font-size: 24px;
}

.hole-card--over {
  background: rgba(255, 150, 124, 0.08);
}

.hole-card--under {
  background: rgba(147, 255, 213, 0.08);
}

.loading-state {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 64px);
  padding: 32px;
}

.detail-list {
  display: grid;
  gap: 2px;
}

.detail-row {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-row h4 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.15;
}

.detail-row p {
  margin: 0;
}

.loading-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(117, 216, 255, 0.35), rgba(147, 255, 213, 0.9));
  box-shadow: 0 0 24px rgba(147, 255, 213, 0.2);
  animation: pulse 1.2s ease-in-out infinite;
  margin-bottom: 18px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: center;
}

.comparison-grid--signal h4 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.home-suppressed {
  display: none;
}

.bottom-nav {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(36, 47, 63, 0.94), rgba(25, 35, 49, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.nav-item {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 4px;
  border-radius: 14px;
}

.nav-item--active {
  color: var(--text-primary);
  background:
    radial-gradient(circle at top, rgba(127, 215, 255, 0.2), transparent 72%),
    rgba(255, 255, 255, 0.08);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scaleX(0.985);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
  }

  .app-frame {
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .plan-block-grid,
  .calc-grid,
  .metric-grid,
  .metric-grid--3,
  .split-grid,
  .hero-split,
  .comparison-grid,
  .form-split,
  .form-split--3,
  .form-split--4 {
    grid-template-columns: 1fr;
  }

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