/* uniqprofile.com
 *
 * IMPLEMENTS docs/DESIGN.md, WHICH IT PREVIOUSLY DID NOT.
 *
 * The colours always matched lib/theme/brand.dart because somebody copied them
 * across by hand. Nothing copied the TYPE, so the site had ten arbitrary sizes
 * — 10.5px, 11.5px, 12.5px, 1.02rem — against a specification that names a
 * scale, a max width of 1240px (the site said 1080), clamp() throughout (the
 * site had four uses), and JetBrains Mono for labels (never loaded, so every
 * uppercase label rendered in whatever monospace the visitor happened to own).
 *
 * Everything here now reads from tokens.css, which is GENERATED from
 * brand.dart and DESIGN.md by infra/generate_tokens.py. Change a colour in the
 * app and this follows; there is no second place to remember.
 */
@import url("tokens.css");

/* SELF-HOSTED, SUBSET, VARIABLE. The app bundles these as assets and the site
 * simply never loaded them. One file per family carries every weight (100–900),
 * subset to Latin + Latin-1 + Extended-A and the punctuation this site uses —
 * 109 KB and 42 KB rather than 856 and 183.
 *
 * font-display: swap, deliberately: text in a fallback face is a worse first
 * impression than text that arrives 80 ms late, but text that is INVISIBLE
 * while a font loads is worse than both. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--body-size);
  line-height: var(--body-line);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* §3. Negative tracking on display sizes is not optional — Inter is spaced for
 * body text and looks loose above ~2rem without it. */
h1, h2, h3 { color: var(--ink); font-weight: 500; margin: 0; }
h1 { font-size: var(--display); letter-spacing: var(--display-track); line-height: 1.06; }
h2 { font-size: var(--h2);      letter-spacing: var(--h2-track);      line-height: 1.1; }
h3 { font-size: var(--h3);      letter-spacing: var(--h3-track);      line-height: 1.35; }

p { margin: 0 0 1.15em; max-width: var(--measure-list); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-soft); text-decoration: underline; }

ul { max-width: var(--measure-list); }

/* §5. Whitespace is the primary design element; when a layout feels wrong the
 * answer is almost always more of it. */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-y) 0; }
section + section { border-top: 1px solid rgb(19 26 36 / 0.07); }

/* §4. The numbered section label: mono, uppercase, wide tracking, muted. It is
 * the one place the mono face appears in running layout, and it is what makes
 * a page read as designed rather than typed. */
.label {
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: var(--label-to-headline);
}

.lead {
  font-size: var(--lead);
  max-width: var(--measure-lead);   /* §5: full-width body text is a bug */
  margin-top: var(--headline-to-lead);
  color: var(--body);
}
.lead-sm { font-size: 0.95rem; color: var(--muted); max-width: var(--measure-lead); }

/* ---- header ------------------------------------------------------------- */
header { padding: 26px 0; }
header .wrap { display: flex; align-items: center; gap: var(--column-gap); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 500; font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { width: 26px; height: 26px; color: var(--blue); flex: none; }
header nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
header nav a { color: var(--body); font-size: 0.95rem; }
header nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- hero --------------------------------------------------------------- */
.hero { padding-top: clamp(48px, 8vw, 104px); }
.hero .lead { margin-bottom: var(--lead-to-content); }

/* ---- actions ------------------------------------------------------------ */
.cta, .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  background: var(--blue); color: #fff;
  border: 1px solid var(--blue); border-radius: var(--radius);
  font-size: 0.97rem; font-weight: 500; letter-spacing: -0.005em;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgb(19 26 36 / 0.22); }
.btn.ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---- three-up detail row (§4) ------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--column-gap);
  margin-top: var(--lead-to-content);
}
.card h3 { margin-bottom: 0.6em; }
.card p { color: var(--body); margin-bottom: 0; max-width: none; }

/* ---- the two doors ------------------------------------------------------ */
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--column-gap);
  margin-top: var(--lead-to-content);
}
.door {
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--paper-2);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.door .who {
  font-family: var(--mono); font-size: var(--label);
  letter-spacing: var(--label-track); text-transform: uppercase;
  color: var(--muted);
}
.door h3 { margin: 0; }
.door p { margin: 0; max-width: none; }
.door .btn { margin-top: 6px; }
.door .after { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---- footer ------------------------------------------------------------- */
footer {
  border-top: 1px solid rgb(19 26 36 / 0.07);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px 22px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--body); }

@media (max-width: 620px) {
  header .wrap { flex-wrap: wrap; gap: 14px; }
  header nav { margin-left: 0; gap: 18px; }
  footer nav { margin-left: 0; }
}

/* ---- the worked example -------------------------------------------------
 * Showing beats claiming: what a person types on the left, what the assistant
 * prepares on the right. Every string in it is a real turn from the running
 * system, not a mock-up.
 *
 * PORTED, NOT REWRITTEN. The sizes are on the scale now (14.5px became 0.95rem,
 * 11px and 13px became the label token) but the structure and the reasoning
 * are the originals — these were live on the landing page and I cut them from
 * a selector inventory that had been truncated at fifty. */
.demo { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 8px; }
.demo-side {
  background: var(--paper-2);
  border: 1px solid rgb(19 26 36 / 0.10);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.demo-side h3 {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.demo-typed {
  font-family: var(--mono); font-size: 0.95rem; line-height: 1.65;
  color: var(--ink); margin: 12px 0 0; white-space: pre-wrap;
}
.demo-card {
  background: var(--paper);
  border: 1px solid rgb(19 26 36 / 0.14);
  border-left: 3px solid var(--blue);
  border-radius: 4px; padding: 12px 14px; margin-top: 12px;
}
.demo-card .k {
  font-family: var(--mono); font-size: var(--label);
  letter-spacing: var(--label-track); text-transform: uppercase;
  color: var(--muted);
}
.demo-card .t { color: var(--ink); font-weight: 600; margin-top: 2px; }
.demo-card .d { font-size: 0.92rem; margin-top: 4px; }
.demo-actions { display: flex; gap: 8px; margin-top: 10px; }
/* Present and inert: the point is that the step exists, not that it works here. */
.mp-confirm .pill { opacity: 0.55; cursor: not-allowed; }
.demo-cta { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* The correction the model spotted — the single most persuasive line in the
 * section, so it is set apart rather than captioning one of the images. */
.demo-note {
  margin: 18px 0 0; padding: 14px 18px;
  background: var(--paper-2);
  border: 1px solid rgb(19 26 36 / 0.12);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  max-width: var(--measure-list);
}
/* A demo has to say so. Anything that could be mistaken for a real vacancy on a
 * real job board is a promise to a jobseeker that nobody can keep. */
.demo-banner {
  background: var(--paper-3);
  border: 1px solid rgb(19 26 36 / 0.16);
  border-left: 3px solid var(--warn);
  border-radius: 4px; padding: 14px 16px; margin: 0 0 26px;
  font-size: 0.95rem;
}
.demo-banner strong { color: var(--ink); }

.pill {
  font-size: 0.78rem; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgb(19 26 36 / 0.22); color: var(--body);
}
.pill.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.card .num {
  font-family: var(--mono); font-size: var(--label);
  color: var(--blue); letter-spacing: var(--label-track);
}

/* A claim with a number in it is a claim somebody can check. */
.facts {
  display: flex; flex-wrap: wrap; gap: 28px 44px;
  margin-top: 30px; padding-top: 26px;
  border-top: 1px solid rgb(19 26 36 / 0.12);
}
.fact .n {
  font-family: var(--mono); font-size: 1.6rem; font-weight: 650;
  color: var(--ink); letter-spacing: -0.01em;
}
.fact .l { font-size: 0.85rem; color: var(--muted); }

/* Text, not a flag. A flag names a country and the choice here is a language:
 * Austrians and the Swiss read the German page, and the Union Jack has never
 * been the right icon for a Dutch reader choosing English. */
.lang-switch {
  font-family: var(--mono); font-size: var(--label);
  letter-spacing: var(--label-track); color: var(--muted);
  text-decoration: none;
  border: 1px solid rgb(19 26 36 / 0.16);
  border-radius: var(--radius);
  padding: 4px 9px; white-space: nowrap;
}
.lang-switch:hover { color: var(--ink); border-color: rgb(19 26 36 / 0.34); text-decoration: none; }

/* §5 says a section boundary is whitespace, not a line. `.plain` opts out of
 * the rule the generic `section + section` draws. */
section.plain { border-top: none; }
