/* omegapanel.net -- one stylesheet, no JavaScript, and every asset served
   from this origin. See backend/cmd/opanel-site. */

@font-face {
  font-family: Archivo; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/archivo-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: Archivo; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/archivo-latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: Archivo; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/archivo-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: Archivo; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/archivo-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
}

:root {
  /* A near-black carrying the sidebar's blue-slate bias rather than a neutral
     grey, so the ground reads as chosen rather than as #111. */
  --ground: #101418;
  --surface: #171c21;
  --surface-2: #1c2229;
  --line: #262d34;
  --line-soft: #1e242a;
  --text: #e7ebee;
  --muted: #8d99a4;
  --dim: #6b7580;

  /* The brand blue, from the 2026-09-19 logo -- PANEL's own colour, sampled
     from the master rather than guessed. It replaced #ED5F20, the 2020
     wordmarks' orange, which this file called "the real brand orange" right
     up until the day the brand stopped being orange. An orange accent beside
     a blue mark does not read as a bold pairing, it reads as a page that has
     not finished loading its stylesheet.

     --accent-soft is the same hue lifted for link text, because the accent on
     this ground is legible for a heading and muddy for a sentence. */
  --accent: #0898F8;
  --accent-soft: #58B9FF;
  --accent-dim: rgba(8, 152, 248, 0.16);

  /* Semantic only. Used on the tier ticks and nowhere else; it is not a
     second accent. */
  --ok: #56c07f;

  --sans: Archivo, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

.skip { position: absolute; left: -9999px; background: var(--accent); color: #12151a;
        padding: .6rem 1rem; z-index: 20; font-weight: 600; border-radius: 2px; }
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- the development notice ---------- */

/* The site describes a product that is not finished, and says so on every page
   rather than in small print at the bottom of one. It is a single block here
   and a single block in the template, so removing it at launch is two
   deletions rather than an archaeology exercise.

   Above the header and not sticky: it should be read once and then leave, not
   follow somebody down the page like a cookie bar. */
.notice {
  background: var(--accent-dim);
  border-bottom: 1px solid rgba(8, 152, 248, .28);
  color: #bcd9f5;
  font: 400 .8rem/1.5 var(--mono); letter-spacing: .02em;
}
.notice .wrap { padding-top: .7rem; padding-bottom: .7rem; }
/* The notice bar carries a link now that the beta is open and prices are
   published. Its body colour is deliberately low-contrast -- it is a standing
   banner, not a call to action -- so the link needs its own treatment or it
   disappears into the sentence. */
.notice a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.notice a:hover { color: #fff; }
.notice .pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: .6rem; vertical-align: middle;
}

/* ---------- header ---------- */

.top {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 20, 24, .88);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between;
             gap: 2rem; min-height: 4.25rem; flex-wrap: wrap; }
.top .mark { display: flex; }
.top img { display: block; height: 38px; width: auto; }
.top nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.top nav a {
  color: var(--muted); text-decoration: none;
  font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: color .15s;
}
.top nav a:hover { color: var(--text); }
.top nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.top .right { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
/* The way into the customer area: the one filled control in the header. */
.top a.client {
  font: 600 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  padding: .75rem 1.25rem; border-radius: 2px;
  background: var(--accent); border: 1px solid var(--accent); color: #14100d;
  box-shadow: 0 0 0 4px var(--accent-dim);
  transition: background .15s, border-color .15s;
}
.top a.client:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #14100d; }
/* A phone: logo and the button on one row, the nav one scrolling row below,
   so the sticky header stays two short rows instead of four. */
@media (max-width: 48rem) {
  .top .wrap { gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .4rem; }
  .top .right { display: contents; }
  .top a.client { order: 2; margin-left: auto; padding: .6rem .9rem; box-shadow: none; }
  .top nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; gap: 1.25rem;
             overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; }
}

/* ---------- shared type ---------- */

h1 {
  font: 700 clamp(2.1rem, 1.1rem + 3.4vw, 3.9rem)/1.04 var(--sans);
  letter-spacing: -.035em; margin: 0 0 1.25rem; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }

/* The lede. Sized off the headline rather than the body so the opening reads
   as one composed block. */
h1 + p { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 40rem; }
h1 + p strong { color: var(--text); font-weight: 500; }

p, ul, ol { max-width: 42rem; }
a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

ul { padding-left: 1.05rem; }
li { margin: .35rem 0; }
li::marker { color: var(--dim); }

strong { font-weight: 600; color: var(--text); }

code {
  font: .86em/1.4 var(--mono);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 2px; padding: .12em .4em; color: var(--text);
}

hr { border: 0; border-top: 1px solid var(--line); margin: 3.5rem 0; }

/* ---------- the prose page (home, pricing, 404) ---------- */

.prose { padding: 5rem 1.5rem 5rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font: 600 1.5rem/1.2 var(--sans); letter-spacing: -.02em;
  margin: 3.75rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.prose h3 {
  font: 500 .76rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 2.25rem 0 .5rem;
}

/* The lead-in strip under the home page headline: the subject's own terms of
   art, in the subject's own typeface. Vernacular as content, not ornament. */
.prose blockquote {
  margin: 2.25rem 0 0; padding: 0; border: 0; max-width: 44rem;
}
.prose blockquote p {
  font: 400 .8rem/2 var(--mono); letter-spacing: .04em;
  color: var(--dim); text-transform: uppercase; margin: 0;
}
.prose blockquote strong { color: var(--muted); font-weight: 400; }

/* ---------- the datasheet page (capabilities) ---------- */

.sheet { padding: 5rem 1.5rem 5rem; }
.sheet > :first-child { margin-top: 0; }

/* Label left, substance right, hairline between -- a spec sheet, which is the
   document shape this audience reads every day. Collapses to one column on a
   phone, where a 12rem rail would leave the prose in a gutter. */
.spec {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0 3rem; border-top: 1px solid var(--line); padding: 2.5rem 0;
}
.spec > h2 {
  font: 500 .78rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: .3rem 0 0; align-self: start;
  position: sticky; top: 6rem;
}
.spec-body > :first-child { margin-top: 0; }
.spec-body > :last-child { margin-bottom: 0; }
.spec-body p { font-size: 1.02rem; color: #cfd6dc; max-width: 38rem; }
.spec-body p strong { color: var(--text); }

@media (max-width: 56rem) {
  .spec { grid-template-columns: 1fr; gap: .85rem; }
  .spec > h2 { position: static; }
}

/* ---------- the tier table ---------- */

.tiers { display: block; overflow-x: auto; max-width: 44rem; margin: 2rem 0; }
table.tiers { border-collapse: collapse; width: 100%; font-size: .94rem; }
.tiers th, .tiers td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.tiers thead th {
  font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: .6rem;
}
.tiers thead th:not(:first-child), .tiers td { text-align: center; }
.tiers tbody th { font-weight: 400; color: #cfd6dc; white-space: nowrap; }
.tiers td { font-variant-numeric: tabular-nums; color: var(--muted); }
.tiers td.yes { color: var(--ok); font-weight: 600; }
.tiers td.no  { color: #4a555f; }
.tiers tr.always { background: var(--accent-dim); }
.tiers tr.always th { color: var(--text); font-weight: 500; white-space: normal; }
.tiers tbody tr:last-child th, .tiers tbody tr:last-child td { border-bottom: 0; }

/* ---------- call to action ---------- */

.prose p.cta, .sheet p.cta { margin-top: 2.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }
p.cta a {
  font: 500 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: .85rem 1.4rem; border-radius: 2px;
  border: 1px solid var(--line); color: var(--text); transition: border-color .15s, color .15s;
}
p.cta a:first-child {
  background: var(--accent); border-color: var(--accent); color: #14100d; font-weight: 600;
}
p.cta a:first-child:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
p.cta a:hover { border-color: var(--muted); color: #fff; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line); margin-top: 2rem;
  padding: 2.5rem 0; color: var(--dim); font-size: .85rem;
}
.foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.foot p { margin: 0; max-width: none; }

/* Somebody who has read the whole capabilities page and wants to talk needs to
   be told that there is not yet anywhere to write to -- silence reads as an
   oversight, and a made-up address would be worse than either. Dimmer than the
   line above it: it is an acknowledgement, not an offer. */
.foot .soon { margin-top: .4rem; color: #59636d; }
.foot .soon a { color: var(--muted); margin: 0; text-decoration: underline; }
.foot .soon a:hover { color: var(--text); }
.foot .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); margin-right: .5rem; vertical-align: middle;
}
.foot a { color: var(--dim); margin-right: 1.4rem; text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 40rem) {
  .prose, .sheet { padding-top: 3rem; }
  .prose h2 { margin-top: 2.5rem; }
}
