/* MesoGauge coming-soon page. Colours and type follow the MesoGauge app
   (frontend/src/styles.css tokens and docs/ux/IDENTITY.md). No web fonts, no scripts,
   no third-party requests. */

:root {
  --ground: #eef1f3;
  --panel: #ffffff;
  --panel-2: #f6f8f9;
  --rule: #c9d3da;
  --rule-2: #e1e7eb;
  --ink: #15212b;
  --ink-2: #44525e;
  --ink-3: #5d6c78;
  --navy: #0b3455;
  --navy-2: #082a45;
  --navy-3: #061f34;
  --on-navy: #f3f7fa;
  --on-navy-2: #b9cbd9;
  --accent: #155f8d;
  --warm: #b85a1c;
  --warm-on-navy: #f0a04b;
  --focus: #f2a900;
  --community: #8d62c0;
  --contributor: #1f6f43;
  --official: #15212b;
  --marine: #127a93;
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e1318;
    --panel: #161c22;
    --panel-2: #1b232a;
    --rule: #34414c;
    --rule-2: #26313a;
    --ink: #e2e7eb;
    --ink-2: #a9b6c0;
    --ink-3: #8a98a3;
    --navy: #0c2a44;
    --navy-2: #081f33;
    --navy-3: #061727;
    --accent: #7fb6de;
    --warm: #e39a6e;
    --community: #c3a6e0;
    --contributor: #6cc093;
    --official: #e2e7eb;
    --marine: #7fd3e8;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.prose > p {
  max-width: 46rem;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Top bar. */

.topbar {
  background: var(--navy);
  color: var(--on-navy);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

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

.lockup-link {
  color: inherit;
  text-decoration: none;
}

.mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.mark-dial {
  fill: none;
  stroke: var(--on-navy);
  stroke-width: 3.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.mark-node {
  fill: var(--on-navy);
}

.mark-needle {
  stroke: var(--warm-on-navy);
  stroke-width: 4.5;
  stroke-linecap: round;
}

.wordmark {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.pill-short {
  display: none;
}

@media (max-width: 480px) {
  .pill-long {
    display: none;
  }

  .pill-short {
    display: inline;
  }
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(243, 247, 250, 0.35);
  border-radius: 999px;
  color: var(--on-navy-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Hero. */

.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: var(--on-navy);
  padding: 44px 0 56px;
}

.hero-copy {
  max-width: 50rem;
}

.eyebrow {
  color: var(--warm-on-navy);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  max-width: 17ch;
}

.lede {
  margin-top: 18px;
  max-width: 44rem;
  color: var(--on-navy-2);
  font-size: 1.15rem;
}

/* Product preview: a map "window" with the Now card over it. */

.preview {
  margin: 36px 0 0;
}

.app {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(127, 182, 222, 0.25);
  background: #08243c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.app-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(6, 23, 39, 0.92);
  border-bottom: 1px solid rgba(127, 182, 222, 0.18);
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 650;
  background: #f3f7fa;
  color: #15212b;
}

.chip-lightning {
  background: #1b232a;
  color: #f3f7fa;
  border: 1px solid #3b4a56;
}

.app-layers {
  margin-left: auto;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b9cbd9;
  border: 1px solid #2a4a66;
}

.layer.on {
  color: #f3f7fa;
  background: #155f8d;
  border-color: #155f8d;
}

.app-stage {
  position: relative;
}

.app-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.app-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.app-side {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
  background: #0a2238;
  border-top: 1px solid rgba(127, 182, 222, 0.18);
}

.now-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f6f8f9;
  color: #15212b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.legend {
  list-style: none;
  margin: 0;
  padding: 4px 2px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  color: #dbe6ee;
  font-size: 0.86rem;
  font-weight: 600;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg {
  width: 20px;
  height: 20px;
  flex: none;
}

@media (min-width: 1000px) {
  .app-body {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .app-side {
    border-top: 0;
    border-left: 1px solid rgba(127, 182, 222, 0.18);
    padding: 18px;
  }

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

.now-place {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 650;
  color: #44525e;
}

.now-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f0a04b;
  box-shadow: 0 0 0 3px rgba(240, 160, 75, 0.3);
}

.now-temp {
  margin-top: 6px;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.now-temp span {
  font-size: 1.3rem;
  margin-left: 2px;
  color: #44525e;
}

.now-sub {
  margin-top: 6px;
  font-weight: 600;
}

.now-evidence {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #44525e;
}

.now-cast {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e1e7eb;
  font-size: 0.9rem;
  font-weight: 650;
}

.tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: #6f42c1;
}

.badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 650;
  color: #f3f7fa;
  background: rgba(6, 23, 39, 0.82);
  border: 1px solid rgba(127, 182, 222, 0.3);
}

.preview figcaption {
  margin-top: 12px;
  max-width: 60rem;
  color: var(--on-navy-2);
  font-size: 0.82rem;
  opacity: 0.85;
}

@media (max-width: 760px) {
  .app-layers {
    display: none;
  }

  .badge {
    top: 10px;
    bottom: auto;
    left: 10px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 64px 0 72px;
  }
}

/* Sections. */

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--panel-2);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}

.section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-lede {
  max-width: 46rem;
  color: var(--ink-2);
  margin-bottom: 28px;
}

.section h2 + .cards,
.section h2 + .principles,
.section h2 + .steps {
  margin-top: 28px;
}

/* Sources. */

.sources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.source {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  padding: 18px;
}

.source h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 4px;
}

.source p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.sym {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  background: #08243c;
  padding: 4px;
}

.sym-community {
  fill: #c3a6e0;
}

.sym-contributor {
  fill: #6cc093;
}

.sym-official {
  fill: none;
  stroke: #e2e7eb;
  stroke-width: 2.4;
}

.sym-marine {
  fill: none;
  stroke: #7fd3e8;
  stroke-width: 2;
  stroke-linejoin: round;
}

.sym-alert {
  fill: #b85a1c;
}

.sym-alert-mark {
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* Steps. */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 6px;
}

.step p {
  color: var(--ink-2);
}

/* Feature cards. */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 14px 0 8px;
}

.card p {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Station call to action. */

.station-cta {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.station-cta p {
  color: var(--ink-2);
  max-width: 42rem;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-weight: 600;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(184, 90, 28, 0.16);
  flex: none;
}

@media (min-width: 900px) {
  .station-cta {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

/* Principles. */

.principles {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.principle {
  border-left: 3px solid var(--warm);
  padding-left: 16px;
}

.principle h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 8px;
}

.principle p {
  color: var(--ink-2);
}

.section p + p {
  margin-top: 16px;
}

.notice {
  color: var(--ink-2);
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--panel);
}

/* Footer. */

.footer {
  border-top: 1px solid var(--rule-2);
  color: var(--ink-3);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 28px;
}

/* 404 page. */

.lost {
  padding-top: 72px;
  padding-bottom: 96px;
}

.lost h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.lost p {
  color: var(--ink-2);
}

.lost a {
  color: var(--accent);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .preview {
    animation: rise 0.7s ease-out both;
  }

  .preview {
    animation-delay: 0.12s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}
