/*
 * IBM Plex Sans is served from this site, so the page makes no third-party requests. The files
 * are the Latin subset from Fontsource 5.3.0, under the SIL Open Font License 1.1 (fonts/OFL.txt).
 */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --gold: #ffbe24;
  --band: #0b1220;
  --band-ink: #ffffff;
  --band-ink-2: #b8bfcc;
  --band-rule: #26314a;

  --paper: #f7f5ef;
  --ink: #0b1220;
  --ink-2: #4a5163;
  --structure: #1c2b4a;
  --rule: #d9d5ca;
  --active: #7a4f00;
  --active-wash: #fff1c7;

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --band: #070c16;
    --band-rule: #1f2940;

    --paper: #0b1220;
    --ink: #e8eaf0;
    --ink-2: #a3aabb;
    --structure: #c9d3ea;
    --rule: #26314a;
    --active: #ffbe24;
    --active-wash: #3a2f0f;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--rule) var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: #0b1220;
}

a {
  color: var(--active);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 12px;
  background: var(--gold);
  color: #0b1220;
  font-weight: 600;
  border-radius: 3px;
  z-index: 1;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The navy band carries the brand in both themes, as the app's header does. */
.band {
  background: var(--band);
  color: var(--band-ink);
  overflow: hidden;
}

.band a {
  color: var(--gold);
}

.band :focus-visible {
  outline-color: var(--gold);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--band-rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--band-ink);
  font-size: 1.4375rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

.band a.wordmark {
  color: var(--band-ink);
}

.wordmark svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}

.top-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.top-link:hover {
  text-decoration: underline;
}

/*
 * Two-column hero: copy on the left, a static sample scan card on the right so the product's
 * purpose is clear at a glance without JavaScript or external screenshots.
 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 72px) clamp(44px, 6vw, 80px);
}

.hero-copy {
  position: relative;
  grid-column: 1;
  grid-row: 1;
}

h1 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2rem, 1.1rem + 3vw, 3.375rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

.lede {
  margin: 20px 0 0;
  max-width: 56ch;
  color: var(--band-ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 32px 0 0;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.soon svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.band a.follow:hover {
  background: var(--gold);
  color: #0b1220;
}

.follow svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.preview {
  grid-column: 2;
  grid-row: 1;
  background: rgb(255 255 255 / 0.03);
  border: 1px solid var(--band-rule);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgb(0 0 0 / 0.28);
}

.preview-head,
.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  font-size: 0.75rem;
  color: var(--band-ink-2);
}

.preview-head {
  border-bottom: 1px solid var(--band-rule);
  background: rgb(255 255 255 / 0.02);
}

.preview-title {
  font-weight: 600;
  color: var(--band-ink);
}

.preview-mode {
  padding: 2px 8px;
  border: 1px solid var(--band-rule);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--band-rule);
}

.preview-id {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}

.preview-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--band-ink);
}

.preview-type {
  font-size: 0.75rem;
  color: var(--band-ink-2);
}

.preview-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.8125rem;
  color: var(--band-ink-2);
}

.preview-meta strong {
  color: var(--band-ink);
  font-weight: 600;
}

.badge {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-high {
  color: #ff9494;
  background: rgb(255 107 107 / 0.14);
  border: 1px solid rgb(255 107 107 / 0.32);
}

.badge-warn {
  color: var(--gold);
  background: rgb(255 190 36 / 0.12);
  border: 1px solid rgb(255 190 36 / 0.32);
}

.badge-ok {
  color: #6ee7b7;
  background: rgb(52 211 153 / 0.12);
  border: 1px solid rgb(52 211 153 / 0.3);
}

.preview-foot {
  background: rgb(255 255 255 / 0.015);
}

/* The three points form a horizontal strip on desktop so all three scan in one sweep. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-block: 0;
  padding-block: clamp(36px, 5vw, 64px);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.fact dt {
  color: var(--structure);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.foot {
  margin-top: auto;
  padding-block: 28px 36px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}

.foot p {
  margin: 0;
}

.not-found main {
  flex: 1;
}

.not-found .hero-copy {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-top: 0;
}

.not-found .hero-copy p {
  margin: 20px 0 0;
}

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

  .hero-copy,
  .preview {
    grid-column: 1;
  }

  .preview {
    grid-row: 2;
  }
}

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

  .badge {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }
}

@media (forced-colors: active) {
  .badge,
  .preview-mode {
    border-color: CanvasText;
  }
}

/* One moment of motion: the three rays draw in one after another after initial paint. */
@media (prefers-reduced-motion: no-preference) {
  .wordmark path {
    stroke-dasharray: 1;
    animation: reach 500ms cubic-bezier(0.16, 1, 0.3, 1) 350ms both;
  }

  .wordmark path:nth-child(2) {
    animation-delay: 850ms;
  }

  .wordmark path:nth-child(3) {
    animation-delay: 1350ms;
  }
}

@keyframes reach {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}
