/*
 * FIXER website (fixer-app.com). Plain CSS, no framework, no external fonts.
 * Brand: black + FIXER yellow (#FFFD01), Cabinet Grotesk — the same colors and font files as the web app
 * (frontend/src/theme/color.ts, frontend/public/fonts).
 */
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/assets/fonts/CabinetGrotesk-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/assets/fonts/CabinetGrotesk-Medium.otf") format("opentype");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/assets/fonts/CabinetGrotesk-Extrabold.otf") format("opentype");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --graphit: #1a1a1a;
  --lead: #1f1f1f;
  --line: #292929;
  --line-strong: #424242;
  --text: #fff;
  --muted: #a3a3a3;
  --yellow: #fffd01;
  --yellow-hover: #f9ff80;
  --radius: 16px;
  --gutter: 16px;
  --max: 1160px;
  --font: "Cabinet Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

/* ---------- header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
}
.site-header--solid {
  position: static;
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  flex: none;
}
.brand img {
  width: 96px;
  height: 32px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  color: var(--text);
}
.nav a:hover {
  color: var(--yellow);
}
.nav__link {
  display: none;
}
@media (min-width: 720px) {
  .nav__link {
    display: inline;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--yellow);
  color: var(--black);
}
.btn--primary:hover {
  background: var(--yellow-hover);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
}
.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.btn--small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 15px;
}
.nav .btn--primary,
.nav .btn--primary:hover {
  color: var(--black);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 96px;
  overflow: hidden;
  isolation: isolate;
  /* shown when neither the video nor the poster can load */
  background: radial-gradient(120% 80% at 70% 20%, #2a2a14 0%, #0d0d0d 45%, #000 100%);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  /* keeps the text readable over any frame of the video */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.8) 100%);
}
.hero__content {
  max-width: 760px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--yellow);
  font-size: clamp(44px, 11vw, 96px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero__lead {
  max-width: 560px;
  margin-top: 20px;
  color: #e5e5e5;
  font-size: clamp(18px, 2.4vw, 21px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stores a {
  display: inline-flex;
  border-radius: 10px;
}
.stores img {
  width: auto;
  height: 48px;
}
.hero__toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 20px;
  z-index: 1;
  display: none;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.hero__toggle[data-ready] {
  display: inline-flex;
  align-items: center;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__toggle {
    display: none !important;
  }
}

/* ---------- sections ---------- */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .section {
    padding: 104px 0;
  }
}
.section__head {
  max-width: 720px;
  margin-bottom: 40px;
}
.section h2 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.section__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 19px;
}
.yellow {
  color: var(--yellow);
}

.cards {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphit);
}
.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--black);
}
.card h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.card p {
  margin-top: 10px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

/* two columns: text + panel */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.steps {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 20px 20px 20px 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphit);
  color: #e5e5e5;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
}

.panel {
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--yellow);
  color: var(--black);
}
@media (min-width: 720px) {
  .panel {
    padding: 56px;
  }
}
.panel h2 {
  color: var(--black);
}
.panel p {
  max-width: 640px;
  margin-top: 16px;
  font-size: 19px;
}
.panel .btn {
  margin-top: 28px;
  background: var(--black);
  color: var(--yellow);
}
.panel .btn:hover {
  background: var(--lead);
}
.panel :focus-visible {
  outline-color: var(--black);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.closing {
  text-align: center;
}
.closing h2 {
  max-width: 820px;
  margin: 0 auto;
}
.closing .actions {
  justify-content: center;
}

/* ---------- about page ---------- */
.page-title {
  padding: 64px 0 40px;
}
.page-title h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.page-title p {
  max-width: 720px;
  margin-top: 20px;
  color: #e5e5e5;
  font-size: 20px;
}
.prose p + p {
  margin-top: 16px;
}
.prose p {
  max-width: 720px;
  color: #e5e5e5;
}
.team {
  display: grid;
  gap: 16px;
  margin: 0;
}
@media (min-width: 720px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
}
.team div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphit);
}
.team dt {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.team dd {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 500;
}
.contact {
  font-style: normal;
  font-size: 19px;
  line-height: 1.6;
}
.contact a {
  color: var(--yellow);
}

/* ---------- 404 ---------- */
.notfound {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 64px 0;
  text-align: center;
}
.notfound h1 {
  color: var(--yellow);
  font-size: clamp(72px, 20vw, 160px);
  font-weight: 800;
  line-height: 1;
}
.notfound p {
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 20px;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--black);
  color: var(--muted);
  font-size: 15px;
}
.site-footer__grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.site-footer h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--yellow);
  text-decoration: underline;
}
.site-footer__about p {
  max-width: 320px;
  margin-top: 16px;
}
.site-footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.notfound .actions {
  justify-content: center;
}
