/* Shared tokens, fonts, buttons and the consult form (home + /looks/). */
@font-face { font-family: "Outfit"; src: url("/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/work-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #06080d;
  --navy: #0b1f4d;
  --blue: #1747b8;
  --sky: #8fcdff;
  --text: #e8eef7;
  --soft: #c3cfe0;
  --muted: #93a3bd;
  --surface: #0c1220;
  --surface-2: #111a2e;
  --line: #1c2740;
  --error: #fca5a5;
  --radius: 14px;
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  /* Motion tokens (mirrors cinematic-site: expo.out / power3.out) */
  --ease-reveal: cubic-bezier(.16, 1, .3, 1);
  --ease-move: cubic-bezier(.215, .61, .355, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);      /* UI feedback (emil-design-eng) */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);  /* on-screen crossfades */
  --dur-micro: .3s;
  --dur-reveal: 1.1s;
  --dur-hero: 1.4s;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--font-display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand__mark { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--sky), var(--blue)); flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--sky); color: var(--bg); }
.btn--primary:hover { background: #b3dcff; }
.btn--ghost { background: transparent; color: var(--text); border-color: rgb(143 205 255 / .35); }
.btn--ghost:hover { border-color: var(--sky); }
.btn:disabled { opacity: .6; cursor: progress; }

/* Consult form */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > label, .field > legend { font-size: 14.5px; font-weight: 550; color: var(--soft); padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  font: 400 16px/1.4 var(--font-body); outline: none; resize: vertical;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field input:focus, .field textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgb(143 205 255 / .2); }
.field__error { margin: 0; color: var(--error); font-size: 14px; }
.needs { display: flex; flex-wrap: wrap; gap: 8px; }
.need { position: relative; }
.need input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.need span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--soft); font-size: 15px;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.need input:checked + span { background: var(--sky); border-color: var(--sky); color: var(--bg); font-weight: 600; }
.need input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }
.form__status { margin: 0; color: var(--muted); }
.form__status.is-ok { color: var(--sky); }
.form__status.is-err { color: var(--error); }
.form__status a { color: var(--text); }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Reduced motion: no movement, but short opacity/colour fades stay (they aid comprehension). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-property: opacity, color, background-color, border-color !important; transition-duration: 150ms !important; }
  .btn:active { transform: none; }
}
