/* =====================================================================
   ZAVÉ — brand foundation: self-hosted fonts, colour tokens, and the
   full-screen brand pages (sign-in, installer, errors, opening soon).
   ===================================================================== */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-standard-italic.woff2") format("woff2-variations");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ox: #3A0607;        /* oxblood — main */
  --ox2: #250304;       /* deep */
  --card: #4A0A0B;      /* cards on burgundy */
  --iv: #F3E9D7;        /* ivory text */
  --mu: #BFAE94;        /* muted text */
  --gf: #D4B062;        /* flat gold, small text */
  --g1: #F6E3A1; --g2: #C9A24A; --g3: #9C7A2E;
  --gold: linear-gradient(180deg, #F6E3A1 8%, #E2C47A 38%, #C9A24A 62%, #9C7A2E 100%);
  --goldh: linear-gradient(90deg, #9C7A2E, #C9A24A 22%, #F6E3A1 50%, #C9A24A 78%, #9C7A2E);
  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
.gt { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lbl { font: 500 11px/1.4 var(--sans); letter-spacing: .25em; text-transform: uppercase; color: var(--gf); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Brand pages ---------- */
.brand-page {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: radial-gradient(60% 55% at 50% 40%, rgba(201,162,74,.14), transparent 70%), linear-gradient(180deg, var(--ox2), var(--ox) 65%);
  color: var(--iv); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  display: grid; place-items: center; padding: 48px 18px;
}
.brand-page::after { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .08; mix-blend-mode: overlay; background-image: var(--grain); }
.brand-page a { color: var(--g1); }
.bp-box { width: min(440px, 100%); text-align: center; position: relative; z-index: 1; }
.bp-box.wide { width: min(640px, 100%); text-align: left; }
.bp-mark { font: 400 clamp(56px, 12vw, 96px)/.9 var(--serif); margin: 0 0 6px; letter-spacing: .02em; }
/* Gradient text is clipped to its box: leave room above for the accent on the É. */
.bp-mark, .side-logo, .ph-mark { padding-top: .2em; margin-top: -.2em; }
.bp-tag { font: 400 11px/1.6 var(--sans); letter-spacing: .32em; text-transform: uppercase; margin: 14px 0 0; }
.bp-rule { display: block; width: 64px; height: 1px; background: var(--goldh); margin: 30px auto; }
.bp-title { font: 400 clamp(30px, 5vw, 44px)/1.1 var(--serif); margin: 0 0 14px; }
.bp-text { color: var(--mu); font-weight: 300; margin: 0 auto 28px; max-width: 42ch; }
.bp-code { font: 500 10px/1 var(--sans); letter-spacing: .5em; color: var(--gf); margin-bottom: 18px; }

/* Forms on brand pages */
.bp-form { text-align: left; display: grid; gap: 16px; margin-top: 8px; }
.bp-form label { display: block; margin-bottom: 8px; }
.bp-form input {
  width: 100%; background: rgba(243,233,215,.05); border: 1px solid rgba(212,176,98,.3); color: var(--iv);
  font: 300 16px/1.4 var(--sans); padding: 13px 14px; border-radius: 0; outline: 0; transition: border-color .5s;
}
.bp-form input:focus { border-color: var(--g1); }
.bp-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; width: 100%; border: 0; cursor: pointer;
  background: var(--goldh); background-size: 200% 100%; color: var(--ox2); font: 600 11px/1 var(--sans);
  letter-spacing: .25em; text-transform: uppercase; transition: background-position .9s var(--ease); text-decoration: none;
}
.bp-btn:hover { background-position: 100% 0; }
.bp-btn.ghost { background: none; border: 1px solid rgba(212,176,98,.5); color: var(--g1); width: auto; padding: 0 28px; }
.bp-flash { padding: 12px 14px; border: 1px solid rgba(230,161,132,.5); color: #f0c2ad; font-size: 14px; text-align: left; }
.bp-flash.info, .bp-flash.success { border-color: rgba(212,176,98,.45); color: var(--g1); }
.bp-foot { margin-top: 34px; font-size: 12px; color: rgba(191,174,148,.7); }
:focus-visible { outline: 1px solid var(--g1); outline-offset: 3px; }

/* Installer checklist */
.checks { list-style: none; padding: 0; margin: 0 0 30px; border-top: 1px solid rgba(212,176,98,.15); }
.checks li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(212,176,98,.12); font-size: 14px; }
.checks b { font-weight: 500; min-width: 0; flex: 1; }
.checks span { color: var(--mu); font-size: 13px; text-align: right; }
.checks i { font-style: normal; width: 18px; flex: none; color: var(--g1); }
.checks .bad i { color: #e6a184; }
.checks .opt i { color: var(--mu); }

@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation: none !important; } }
