/*
 * noveyl.work
 *
 * Near-black ground, product panels lit from behind, one variable grotesque
 * doing all the typographic work through weight and optical size. The
 * screenshots are the extension running in dark mode against the end-to-end
 * fixture — the interface itself, not a rendering of it.
 *
 * No third-party requests. Fonts are served from this origin. A privacy tool
 * whose own site phoned a font CDN would be the thing it warns you about.
 */

/* One variable family, carrying its own optical-size axis. Bricolage Grotesque
   has visible personality — flat-sided bowls, a tall wedge on the 'y', tight
   apertures — which is the point: a neutral grotesque paired with an italic
   serif accent is the house style of every generated landing page this year. */
@font-face {
  font-family: Bricolage;
  src: url('assets/fonts/bricolage.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-display: swap;
}
@font-face { font-family: 'JB Mono'; src: url('assets/fonts/jb-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JB Mono'; src: url('assets/fonts/jb-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #08090b;
  --bg-2: #0c0e11;
  --card: #101317;
  --card-2: #14181d;
  --edge: rgb(255 255 255 / 8%);
  --edge-bright: rgb(255 255 255 / 14%);

  --text: #eceef1;
  --text-2: #949ca8;
  --text-3: #6a7280;

  --none: #45c47f;
  --low: #8ccb63;
  --medium: #e3a949;
  --high: #f4726f;
  --unknown: #7d8694;

  --sans: Bricolage, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JB Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(1.15rem, 4vw, 3rem);
  --r: 16px;
  --ease: cubic-bezier(0.22, 0.72, 0.28, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: rgb(255 255 255 / 18%); }
:focus-visible { outline: 1px solid var(--text-2); outline-offset: 4px; border-radius: 4px; }

.wrap { max-width: 74rem; margin: 0 auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* ── type ──────────────────────────────────────────────────────────────── */

.h1, .h2 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.h1 { font-size: clamp(2.5rem, 6.6vw, 5.1rem); font-variation-settings: 'opsz' 96; }
.h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-variation-settings: 'opsz' 72; }
/* The second line steps back in weight and colour instead of changing typeface. */
.turn { display: block; font-weight: 300; color: var(--text-2); letter-spacing: -0.03em; }

.label {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
.lede { font-size: clamp(0.9375rem, 1.25vw, 1.0625rem); line-height: 1.65; color: var(--text-2); }
.center .lede { margin-inline: auto; max-width: 46ch; }

/* ── chrome ────────────────────────────────────────────────────────────── */

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--edge);
}
.masthead__inner { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand svg { width: 1.15rem; height: 1.15rem; }
.brand span { font-weight: 700; letter-spacing: -0.02em; font-size: 1.0625rem; }
.masthead nav { margin-left: auto; display: none; gap: 2rem; }
@media (min-width: 52rem) { .masthead nav { display: flex; } }
.masthead nav a { font-size: 0.875rem; color: var(--text-2); text-decoration: none; transition: color 160ms var(--ease); }
.masthead nav a:hover { color: var(--text); }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.05rem; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 0.8125rem; font-weight: 600; text-decoration: none;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}
.pill:hover { transform: translateY(-1px); opacity: 0.9; }
.pill--ghost { background: transparent; color: var(--text); border: 1px solid var(--edge-bright); font-weight: 500; }
.pill--ghost:hover { background: var(--card-2); }
.masthead .pill { margin-left: auto; }
@media (min-width: 52rem) { .masthead .pill { margin-left: 0; } }

/* ── glow ──────────────────────────────────────────────────────────────── */

.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ''; position: absolute; z-index: -1; left: 50%; translate: -50% 0;
  width: min(92rem, 170vw); aspect-ratio: 2 / 1; top: -18%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(126 160 255 / 13%) 0%, rgb(126 160 255 / 4%) 42%, transparent 70%);
  pointer-events: none;
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero .label { margin-bottom: 1.5rem; }
.hero .lede { margin-top: 1.75rem; }
.hero__actions { display: flex; gap: 0.65rem; justify-content: center; flex-wrap: wrap; margin-top: 2.25rem; }
.fineprint {
  margin-top: 1.15rem; font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase;
}

.stage { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); display: flex; justify-content: center; align-items: flex-end; gap: 1.25rem; }
.stage__panel {
  border: 1px solid var(--edge-bright); border-radius: var(--r); overflow: hidden;
  background: var(--card); box-shadow: 0 30px 80px -30px rgb(0 0 0 / 90%);
}
.stage__panel--main { width: min(24rem, 88vw); z-index: 2; }
.stage__panel--side { display: none; width: 19rem; opacity: 0.55; margin-bottom: 3rem; }
@media (min-width: 68rem) { .stage__panel--side { display: block; } }
.stage::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; z-index: 3;
}

/* ── stat band ─────────────────────────────────────────────────────────── */

.band { border-block: 1px solid var(--edge); margin-top: clamp(1rem, 3vw, 2rem); }
.band__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 58rem) { .band__grid { grid-template-columns: repeat(4, 1fr); } }
.band__cell { padding: 2rem 1.25rem 2.25rem 0; border-right: 1px solid var(--edge); }
.band__cell:nth-child(2n) { border-right: 0; }
@media (min-width: 58rem) { .band__cell { padding-left: 1.5rem; border-right: 1px solid var(--edge); } .band__cell:nth-child(2n) { border-right: 1px solid var(--edge); } .band__cell:first-child { padding-left: 0; } .band__cell:last-child { border-right: 0; } }
.band__value { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin: 0.85rem 0 0.65rem; font-variation-settings: 'opsz' 48; }
.band__cell p { font-size: 0.8125rem; color: var(--text-2); line-height: 1.5; }

/* ── sections ──────────────────────────────────────────────────────────── */

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section__head { max-width: 44rem; margin-inline: auto; }
.section__head .label { margin-bottom: 1.25rem; }
.section__head .lede { margin-top: 1.25rem; }

/* alternating feature rows */
.feature { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 62rem) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--flip .feature__text { order: 2; }
}
.feature__text h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.03em; margin-top: 0.9rem; font-variation-settings: 'opsz' 40; }
.feature__text p { margin-top: 1rem; color: var(--text-2); font-size: 0.9375rem; line-height: 1.7; }
.feature__media {
  /* Lighter than the panel it holds: the screenshots are dark-mode captures and
     would otherwise dissolve into the card behind them. */
  border: 1px solid var(--edge); border-radius: var(--r);
  background: linear-gradient(180deg, #191e25 0%, #12161b 100%);
  padding: clamp(1rem, 2vw, 1.75rem); position: relative; overflow: hidden;
}
.feature__media::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgb(126 160 255 / 8%), transparent 70%);
  pointer-events: none;
}
.feature__media img {
  border-radius: 10px; border: 1px solid var(--edge-bright); margin-inline: auto;
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 85%);
}

/* card */
.card {
  border: 1px solid var(--edge); border-radius: var(--r); background: var(--card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.cards { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 58rem) { .cards--2 { grid-template-columns: 1fr 1fr; } }

/* scale */
.scale { display: grid; gap: 0.75rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 46rem) { .scale { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .scale { grid-template-columns: repeat(5, 1fr); } }
.scale .card { padding: 1.25rem 1.25rem 1.5rem; }
.chip { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; display: inline-flex; align-items: center; gap: 0.5rem; }
.chip::before { content: ''; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.scale p { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--text-2); line-height: 1.55; }
.is-none .chip { color: var(--none); } .is-low .chip { color: var(--low); }
.is-medium .chip { color: var(--medium); } .is-high .chip { color: var(--high); }
.is-unknown .chip { color: var(--unknown); }

/* promises */
.promises ul { margin-top: 1.5rem; display: grid; gap: 0.85rem; }
.promises li { display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.6rem; font-size: 0.9375rem; color: var(--text-2); line-height: 1.55; }
.promises li::before { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.6; }
.does li::before { content: '+'; color: var(--none); }
.never li::before { content: '−'; color: var(--high); }

/* quote card */
.quote { font-size: clamp(1.15rem, 2.1vw, 1.5rem); line-height: 1.4; letter-spacing: -0.025em; margin-top: 1rem; font-weight: 500; }
.quote em { font-style: normal; font-weight: 700; }

/* closing */
.closing { padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 4rem); }

/* footer */
.footer { border-top: 1px solid var(--edge); padding-top: 2.5rem; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; align-items: baseline; }
.footer a { font-size: 0.8125rem; color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.wordmark {
  font-size: clamp(4.5rem, 22vw, 17rem); font-weight: 700; letter-spacing: -0.06em;
  font-variation-settings: 'opsz' 96;
  line-height: 0.8; text-align: center; margin-top: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(to bottom, rgb(236 238 241 / 22%), rgb(236 238 241 / 3%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

/* ── document pages ────────────────────────────────────────────────────── */

.doc { padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 8vw, 6rem); }
.doc__head { max-width: 46rem; }
.doc__head h1 { margin-top: 1.25rem; }
.doc__head .lede { margin-top: 1.5rem; }
.doc__body { max-width: 44rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.doc__body h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); font-weight: 600; letter-spacing: -0.03em; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--edge); }
.doc__body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.doc__body h3 { font-size: 1rem; font-weight: 600; margin-top: 1.75rem; }
.doc__body p { margin-top: 1rem; color: var(--text-2); }
.doc__body strong { color: var(--text); font-weight: 500; }
.doc__body ul { margin-top: 1rem; display: grid; gap: 0.6rem; }
.doc__body li { display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.5rem; color: var(--text-2); }
.doc__body li::before { content: '—'; color: var(--text-3); font-family: var(--mono); font-size: 0.75rem; line-height: 1.9; }
.doc__body a { color: var(--text); text-decoration: underline; text-underline-offset: 0.18em; }
.doc__body code { font-family: var(--mono); font-size: 0.85em; background: var(--card-2); padding: 0.12em 0.4em; border-radius: 4px; }
.doc__body .label { display: block; }

.table-wrap { margin-top: 1.5rem; overflow-x: auto; border: 1px solid var(--edge); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.875rem; }
th, td { text-align: left; padding: 0.9rem 1.1rem; vertical-align: top; border-bottom: 1px solid var(--edge); }
th { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
td { color: var(--text-2); }
td:first-child { color: var(--text); }
tr:last-child td { border-bottom: 0; }

/* ── small utilities ───────────────────────────────────────────────────── */
/* Used instead of style attributes so the site can ship a content security
   policy with no 'unsafe-inline' — which is worth more here than the brevity. */

.stack-sm { margin-top: 1rem; }
.stack-md { margin-top: 1.5rem; }
.stack-xs { margin-top: 0.75rem; }
.narrow { max-width: 60ch; }
.narrow-wide { max-width: 64ch; }
.is-ok { color: var(--none); }
.code-inline { font-family: var(--mono); font-size: 0.9em; }

/* ── entrance ──────────────────────────────────────────────────────────── */

.rise { animation: rise 800ms var(--ease) both; }
.rise-1 { animation-delay: 50ms; } .rise-2 { animation-delay: 120ms; }
.rise-3 { animation-delay: 200ms; } .rise-4 { animation-delay: 290ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

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

/* --- long-form articles --------------------------------------------------- */

.doc__body blockquote {
  margin: 1.75rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--edge-bright);
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text);
}
.doc__body > p:first-of-type { font-size: 1.0625rem; }
.doc__body h2 + p { margin-top: 1.25rem; }
