/*
 * Predixi MIS intro page. Static and still: no transitions, animations, smooth scrolling or hover movement.
 * Colours and faces follow the product (MIS/docs/DESIGN.md, ui/src/styles/00-tokens.css): warm paper, ink,
 * one ember accent, frost only for cold-chain meaning, Bricolage Grotesque for display, Figtree for text.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin-ext-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ---------------------------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;
  --paper: #f6f4ef;
  --paper-2: #efece5;
  --surface: #ffffff;
  --line: #e4dfd5;
  --line-strong: #cfc8ba;
  --ink: #1b2230;
  --ink-2: #4b5261;
  --ink-3: #676d78;
  --ember: #e8590c;
  --ember-fill: #c8470d;
  --on-ember: #ffffff;
  --ember-text: #9a3412;
  --ember-soft: #fdede2;
  --frost: #2f9bd6;
  --frost-text: #1d73a6;
  --frost-soft: #e3f2fa;
  --ok: #237a34;
  --cat-ref: #2f86d0;
  --cat-hvac: #c94f86;
  --cat-light: #e7a400;
  --cat-other: #a8a196;
  /* The ink band: the one dark surface of the light page (the "how it works" chain). */
  --band: #1b2230;
  --band-ink: #f6f4ef;
  --band-ink-2: #b4bac4;
  --band-line: #343d4e;
  --band-accent: #ff8c38;
  --band-node: #232b3b;
  --shot-bg: #f6f4ef;
  --shadow: 0 1px 0 rgb(27 34 48 / 0.04), 0 22px 44px -26px rgb(84 56 24 / 0.38);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 136px);
  --radius-shot: 14px;
  --radius-phone: 34px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12151a;
    --paper-2: #161a20;
    --surface: #1a1f27;
    --line: #2a313c;
    --line-strong: #3a4250;
    --ink: #ece7df;
    --ink-2: #b7bcc5;
    --ink-3: #959ba6;
    --ember: #ff922b;
    --ember-fill: #ff922b;
    --on-ember: #1f1206;
    --ember-text: #ffa94d;
    --ember-soft: #3b2415;
    --frost: #5ab8ec;
    --frost-text: #5ab8ec;
    --frost-soft: #12283a;
    --ok: #5bcb72;
    --cat-ref: #3d94dc;
    --cat-hvac: #d9649a;
    --cat-light: #bb8300;
    --cat-other: #6b665e;
    --band: #29190f;
    --band-ink: #f3ece4;
    --band-ink-2: #c9b8a8;
    --band-line: #4a3122;
    --band-accent: #ff922b;
    --band-node: #33211a;
    --shot-bg: #1a1f27;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.3), 0 22px 44px -26px rgb(0 0 0 / 0.75);
  }
}

/* ---- Base (the page declares no motion of any kind; state changes are instant) ------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 620; color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.sprite { display: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--ink-3); }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---- Type ----------------------------------------------------------------------------------------------- */
.display {
  font-size: clamp(2.5rem, 5.6vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 640;
  text-wrap: balance;
}
.section-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.026em;
  font-weight: 630;
  text-wrap: balance;
  max-width: 20ch;
}
.section-lead { margin-top: 18px; max-width: 60ch; color: var(--ink-2); font-size: 1.125rem; text-wrap: pretty; }
.lead { color: var(--ink-2); font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 46ch; text-wrap: pretty; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.012em; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.005em; }
.prose p + p { margin-top: 12px; }
.prose p { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }

/* ---- Controls ------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  font-weight: 620; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ember-fill); color: var(--on-ember); }
.btn-primary:hover { background: var(--ember-text); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 0.9375rem; border-radius: 10px; }
.text-link { color: var(--ember-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (prefers-color-scheme: dark) {
  .btn-primary:hover { background: #ffa94d; color: var(--on-ember); }
}
