/* BitePass website – shared styles (all pages).
   Colors and font are the same as in the app. */

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-900.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #2a1531;
  --bg-deep: #1f0f25;
  --surface: #36203e;
  --surface2: #422849;
  --surface3: #4e3056;
  --border: #5b3a64;
  --primary: #9e437c;
  --deep: #662c79;
  --accent: #c5fdb6;
  --on-accent: #2a1531;
  --text: #fffbff;
  --soft: #ebddf0;
  --muted: #c4aacf;
  --error: #ff6b6e;
  --success: #4cd787;
  --radius: 24px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Hidden above the page (not to the side: that would add a horizontal
   scroll area in right-to-left Arabic). */
.skip-link {
  position: absolute;
  inset-inline-start: 8px;
  top: -80px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 100;
}
.skip-link:focus { top: 8px; }

.hidden { display: none !important; }
.muted { color: var(--muted) !important; font-size: 14px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(42, 21, 49, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(91, 58, 100, 0.6);
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.3px;
}
.site-header .brand { margin-inline-end: auto; }
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--surface); color: var(--text); }
.lang-switch { display: flex; gap: 2px; background: var(--surface); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); }
.header-cta { white-space: nowrap; }
@media (max-width: 900px) {
  .site-nav { display: none; }
}
@media (max-width: 480px) {
  .site-header .header-cta { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--deep)); color: #fff; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-outline { background: transparent; color: var(--soft); border: 1.5px solid var(--border); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: default; transform: none; }
.btn-block { display: flex; width: 100%; margin-top: 12px; }

/* Store buttons (replace with the official badge artwork before launch). */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 10px 18px;
  border-radius: 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; opacity: 0.8; line-height: 1.1; }
.store-btn strong { display: block; font-size: 18px; line-height: 1.15; }
.store-btn.soon { opacity: 0.6; cursor: default; }
.store-btn.soon:hover { transform: none; }

/* ── Small pages (share link, email confirmation, 404) ──────────────────── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
  background: radial-gradient(circle at 50% -10%, rgba(158, 67, 124, 0.45), transparent 60%);
}
.page > .brand { margin-bottom: 28px; }
.card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px 22px;
  text-align: center;
}
.card h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 10px; }
.card p { color: var(--soft); margin: 0 0 18px; }
.card .btn { display: flex; width: 100%; margin-top: 12px; }
.card .store-buttons { justify-content: center; margin-top: 16px; }
.card .hint { margin: 18px 0 0; }
.hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 14px;
  background: var(--surface2);
}
.field { text-align: start; margin-top: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--soft); }
.field input {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}
.notice {
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  text-align: start;
}
.notice.error { background: rgba(255, 107, 110, 0.12); color: var(--error); border: 1px solid rgba(255, 107, 110, 0.4); }
.notice.success { background: rgba(76, 215, 135, 0.12); color: var(--success); border: 1px solid rgba(76, 215, 135, 0.4); }

/* ── Legal pages ────────────────────────────────────────────────────────── */
.doc-wrap { padding: 36px 16px 56px; display: flex; justify-content: center; }
.doc {
  width: 100%;
  max-width: 780px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
}
.doc h1 { margin-top: 0; font-size: 32px; line-height: 1.15; }
.doc h2 { margin-top: 30px; font-size: 20px; color: var(--accent); }
.doc p, .doc li { color: var(--soft); }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc .draft {
  border: 1px dashed var(--accent);
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--accent);
  font-weight: 700;
}
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-size: 14px; }
.doc th, .doc td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--soft); vertical-align: top; }
.doc th { color: var(--text); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 8px 0 0; }
.site-footer .copy { width: 100%; color: var(--muted); font-size: 13px; }
