/* ===========================================================
   ROZER — shared core
   Loaded by every static page under assets/ (products, pricing, account,
   signup). The Vite-bundled home page has the same system inlined in
   src/style.css — keep the tokens below in sync with it.

   Flat surfaces, hairline rules, type-led hierarchy.
   No ambient glow, no blurred blobs, no radial washes.
   =========================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg:          #08080a;
  --bg-raised:   #0e0e11;
  --bg-sunken:   #050506;
  --surface:     #101014;

  --text:        #f4f4f2;
  --text-2:      #a3a3ad;
  --text-3:      #7e7e8a;

  --rule:        rgba(255, 255, 255, 0.09);
  --rule-2:      rgba(255, 255, 255, 0.16);
  --rule-3:      rgba(255, 255, 255, 0.28);

  /* Pages may override --accent (and its ink/soft/line partners) locally. */
  --accent:      #f5a623;
  --accent-ink:  #140d00;
  --accent-soft: rgba(245, 166, 35, 0.12);
  --accent-line: rgba(245, 166, 35, 0.42);

  --ok:          #4ade80;
  --ok-soft:     rgba(74, 222, 128, 0.12);
  --warn:        #ff9d5c;
  --err:         #ff8f8f;
  --err-soft:    rgba(255, 143, 143, 0.1);

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1080px;
  --pad: 2rem;
  --nav-h: 56px;

  --r-sm: 3px;
  --r-md: 5px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 0.16s var(--ease);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 0.1em 0.4em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hidden { display: none !important; }

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 999;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7em 1.2em;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--r-md);
  transition: top var(--fast);
}
.skip-link:focus { top: 1rem; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-2);
  padding: 0.45em 0.8em;
  transition: color var(--fast);
}
.nav__back:hover { color: var(--text); }
.nav__cta {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.55em 1.05em;
  border-radius: var(--r-md);
  transition: filter var(--fast);
}
.nav__cta:hover { filter: brightness(1.1); }

/* ---------- BUTTONS ---------- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85em 1.6em;
  border-radius: var(--r-md);
  transition: filter var(--fast), background var(--fast), border-color var(--fast);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { color: var(--text); border: 1px solid var(--rule-2); }
.btn-secondary:hover { border-color: var(--rule-3); background: var(--surface); }

/* ---------- PAGE FOOTER ---------- */
.site-foot__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 2.25rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
}
.site-foot__copy,
.site-foot__links {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.site-foot__links { display: flex; gap: 1.25rem; }
.site-foot__links a { transition: color var(--fast); }
.site-foot__links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  :root { --pad: 1.35rem; }
  .site-foot__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
