/*
 * NuanceEval — coming-soon landing page.
 *
 * House "family look" (restyled 2026-10-12): dark navy surface + mint accent +
 * the IBM Plex / Gugi type system, matching measuredlanguage.com and
 * zdr.linguaanalytica.com. Palette + type adopted from the approved brand kit
 * (Lingua_Analytica_Brand/brand-kit, Scheme S1 "Mint Mono") and the live
 * measuredlanguage.com :root token block. No external framework/JS — renders
 * correctly with JS disabled.
 *
 * Tokens (S1): bg/Page Dark #0e1116, panel #161b24, border #2a3344,
 * fg/Pale #e8edf5, dim/muted #9aa7bd, accent/Mint #00ffcc, accent2 #6fe7d6.
 * Fonts: IBM Plex Sans (body) + Gugi (wordmark/display), loaded via Google Fonts
 * identically to the live landing.
 * 2026-10-16: h1 font-weight: 400 — Gugi ships only 400; the UA-default bold on h1 synthesized a distorted wordmark.
 */

:root {
  --ink:        #0e1116;       /* Page Dark (background) */
  --panel:      #161b24;
  --panel2:     #1d2432;
  --rule:       #2a3344;       /* panel border / hairlines */
  --muted:      #9aa7bd;       /* dim text (muted) */
  --accent:     #00ffcc;       /* Mint — brand accent (dark bgs only) */
  --accent2:    #6fe7d6;       /* mint light (derived) */
  --bg:         #0e1116;       /* Page Dark */
  --fg:         #e8edf5;       /* Pale — light text on dark */
  --maxwidth:   900px;
}

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

/* Predictable sizing: padding never adds to element width, so no element
   can exceed its container — guards against horizontal clip on narrow views. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica,
               Arial, sans-serif;
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Centre the reading column; cap width at 900px. */
.masthead,
main,
footer {
  max-width: var(--maxwidth);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Wordmark / display: Gugi (the family brand face), to match measuredlanguage.
   Subtitles and small headings use sans; long-form serif kept for completeness. */
h1,
.subtitle {
  color: var(--fg);
  line-height: 1.25;
}

/* Logo + wordmark row: icon to the left of the stacked text column. */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand .mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

h1 {
  font-family: Gugi, "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: 0.02em;
}

/* "Eval" in the wordmark picks up the mint brand accent. */
h1 .accent-text {
  color: var(--accent);
}

/* Sized so the rendered text sits comfortably inside the horizontal span
   of the NuanceEval wordmark above it (kerning tightened, not font-size,
   per spec) and tucked close underneath it. */
.subtitle {
  font-family: Gugi, "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.014em;
  color: var(--muted);
  margin: -6px 0 0 0;
  text-align: center;
}

/* Eyebrow — small-caps muted lead line above the h1, matching the
   measuredlanguage.com / zdr.linguaanalytica.com header unit. */
.eyebrow {
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 0.6rem 0;
}

.masthead {
  border-bottom: 3px solid var(--accent);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

/* ---------------------------------------------------------------- */
/* Coming-soon body: a centred, quiet landing panel.               */
/* ---------------------------------------------------------------- */
.coming {
  padding-top: 4.5rem;
  padding-bottom: 1rem;
  text-align: center;
}

/* A prominent "coming soon" launch signal — mint on dark */
.status {
  display: inline-block;
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 255, 204, 0.12);
  border: 1px solid rgba(0, 255, 204, 0.40);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin: 0 0 2rem 0;
}

.coming .lede {
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  max-width: 30em;
  margin: 0 auto;
  color: var(--fg);
}

/* The measurement motif: a paired comparison on a logit scale. */
.motif {
  margin: 3.25rem auto 0;
  padding-bottom: 0.5rem;
}

.motif .logit {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
}

.motif .axis {
  stroke: var(--rule);
  stroke-width: 2;
}

.motif .ticks line {
  stroke: var(--rule);
  stroke-width: 1.5;
}

.motif .ticklabels text {
  fill: var(--muted);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  text-anchor: middle;
}

.motif .pair {
  stroke: var(--muted);
  stroke-width: 1;
  fill: none;
  opacity: 0.7;
}

.motif .mark.better {
  fill: var(--accent);
}

.motif .mark.other {
  fill: var(--bg);
  stroke: var(--muted);
  stroke-width: 2;
}

.motif .mark.label {
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
}

.motif .mark.label.better { fill: var(--accent); }
.motif .mark.label.other  { fill: var(--muted); }

.motif figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.75rem;
}

footer {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Single-line family footer: © year + legal name linked to the firm site.
   Mint link, matching the family's deep-teal / mint palette. */
footer.wrap {
  text-align: center;
}

footer .copy {
  display: inline-block;
}

footer .copy a {
  color: var(--accent2);
  text-decoration: none;
}

footer .copy a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Keep the motif centred and readable on small viewports. */
@media (max-width: 480px) {
  .coming { padding-top: 3rem; }
  .coming .lede { font-size: 1.05rem; }
  h1 { font-size: 2rem; }
}
