/* feVR Player website. Colours and typeface follow branding/README.md. */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/Outfit-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/Outfit-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0d0a16;
  --surface: #221a33;
  --raised: #2f2647;
  --line: #3a2f57;
  --field: #150f22;
  --text: #eeeaf6;
  --muted: #a79fba;
  --accent: #7b4dd6;
  --accent-deep: #6c3ae4;
  --violet: #8a49f3;
  --lilac: #ccbff7;
  --pale-lilac: #d0c2f9;
  --error: #ffb3c4;
  --display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; display: flex; flex-direction: column; }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { touch-action: manipulation; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pale-lilac);
  outline-offset: 4px;
  border-radius: 4px;
}

h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; }
h1 em { font-style: normal; color: var(--violet); }

.container { width: min(100% - 64px, 1120px); margin-inline: auto; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  z-index: 100;
  top: -80px;
  left: 20px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--pale-lilac);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus { top: 14px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(208, 194, 249, 0.1);
  background: rgba(13, 10, 22, 0.86);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand { display: inline-flex; flex: none; margin-left: -5px; }
.brand img { display: block; width: auto; height: 38px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a,
.footer-links a { transition: color 0.2s ease; }

.site-nav a:hover,
.footer-links a:hover,
.site-nav a[aria-current='page'],
.footer-links a[aria-current='page'] { color: var(--pale-lilac); }

/* Shared pieces */

.section-label {
  margin-bottom: 22px;
  color: var(--lilac);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover { transform: translateY(-2px); }
.button .icon { width: 17px; height: 17px; }

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 32px rgba(123, 77, 214, 0.3);
}

.button-primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 14px 38px rgba(123, 77, 214, 0.42);
}

.button-secondary {
  border-color: #56487a;
  background: rgba(208, 194, 249, 0.03);
  color: var(--text);
}

.button-secondary:hover { border-color: var(--lilac); }

/* Home */

.hero {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(ellipse 58% 62% at 50% 38%, rgba(108, 58, 228, 0.34), transparent 72%),
    linear-gradient(180deg, #130e21 0%, var(--ink) 100%);
}

.hero-inner { position: relative; text-align: center; }

.hero-logo {
  display: block;
  width: min(430px, 82%);
  height: auto;
  margin: 0 auto 30px;
}

.hero h1 {
  max-width: 15em;
  margin: 0 auto 20px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto 34px;
  color: #c9c1dc;
  font-size: 18px;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-note {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* Support */

.page {
  flex: 1;
  padding: 84px 0 104px;
  background:
    radial-gradient(circle at 14% 0%, rgba(108, 58, 228, 0.22), transparent 42%),
    var(--ink);
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.support-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.support-copy p {
  max-width: 420px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.support-copy p a,
.prose a {
  color: var(--pale-lilac);
  text-decoration: underline;
  text-decoration-color: rgba(208, 194, 249, 0.45);
  text-underline-offset: 3px;
}

.support-copy p a:hover,
.prose a:hover { text-decoration-color: currentColor; }

.support-form {
  position: relative;
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.support-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.support-field { display: grid; gap: 9px; min-width: 0; }

.support-field label {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #54477a;
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font: 15px/1.5 var(--body);
  outline: none;
}

.support-field select {
  appearance: none;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23ccbff7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: right 16px center;
}

.support-field textarea { min-height: 150px; resize: vertical; }

.support-field input::placeholder,
.support-field textarea::placeholder { color: #867d9c; }

.support-field input:focus-visible,
.support-field select:focus-visible,
.support-field textarea:focus-visible {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(138, 73, 243, 0.28);
}

.support-form-bottom { display: flex; align-items: center; gap: 20px; }
.support-form-bottom button { flex: none; }
.support-form-bottom button:disabled { opacity: 0.65; cursor: wait; transform: none; }
.support-form-bottom p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.support-status {
  margin: 0;
  padding: 13px 15px;
  border-radius: 8px;
  background: rgba(138, 73, 243, 0.18);
  color: var(--pale-lilac);
  font-size: 14px;
  line-height: 1.5;
}

.support-status.is-error { background: rgba(214, 70, 143, 0.16); color: var(--error); }
.support-status[hidden] { display: none; }

.support-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Privacy policy */

.prose { width: min(100% - 64px, 720px); margin-inline: auto; }

.prose h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.prose .effective { margin-bottom: 34px; color: var(--muted); font-size: 14px; }

.prose h2 {
  margin: 46px 0 14px;
  color: var(--pale-lilac);
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.prose p,
.prose li { color: #d3cce3; font-size: 16px; line-height: 1.75; }

.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }

.prose .summary {
  margin: 0 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
}

.prose .summary h2 { margin-top: 0; }
.prose .summary p { margin-bottom: 0; color: var(--text); }

/* Footer */

.site-footer { border-top: 1px solid rgba(208, 194, 249, 0.1); background: var(--ink); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.footer-legal a { color: #d6cfe6; font-weight: 600; }
.footer-legal a:hover { color: var(--pale-lilac); }

.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: #5d5279; }

.made-canada { display: inline-flex; align-items: center; gap: 6px; }
.made-canada svg { width: 15px; height: 15px; flex: none; fill: #f00; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
}

.footer-note {
  flex-basis: 100%;
  margin: 0;
  color: #7f7796;
  font-size: 12px;
}

@media (max-width: 850px) {
  .container, .prose { width: min(100% - 44px, 1120px); }
  .support-grid { grid-template-columns: 1fr; gap: 34px; }
  .support-copy p { max-width: 640px; }
  .page { padding: 60px 0 80px; }
}

@media (max-width: 520px) {
  .container, .prose { width: min(100% - 36px, 1120px); }
  .header-inner { min-height: 64px; gap: 14px; }
  .brand img { height: 32px; }
  .site-nav { gap: 20px; font-size: 14px; }
  .hero { padding: 52px 0 64px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .support-form-row { grid-template-columns: 1fr; }
  .support-form-bottom { flex-direction: column; align-items: stretch; gap: 12px; }
  .support-form-bottom button { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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