/* =========================================================
   Bordr — fonts
   ========================================================= */
@font-face {
  font-family: "PPNeueMontreal";
  src:
    url("/fonts/PPNeueMontreal-Book.woff2") format("woff2"),
    url("/fonts/PPNeueMontreal-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PPNeueMontreal";
  src:
    url("/fonts/PPNeueMontreal-Medium.woff2") format("woff2"),
    url("/fonts/PPNeueMontreal-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   Bordr — design tokens
   ========================================================= */
:root {
  --bg: #000000;
  --text: #f5f5f5;
  --muted: #8e8e93;
  --rule: #1c1c1e;
  --surface: #0a0a0a;
  --accent: #ffffff;

  --font-sans:
    "PPNeueMontreal", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max-wide: 90rem;
  --max-prose: 42rem;

  --pad-x: 1.25rem;
  --pad-x-md: 2rem;
  --pad-x-lg: 3rem;

  --radius-sm: 6px;
  --radius-md: 10px;
}

/* =========================================================
   Reset / base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  image-rendering: -webkit-optimize-contrast;
}

a {
  color: var(--text);
  text-decoration: none;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease,
    opacity 0.15s ease;
}

a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

::selection {
  background: var(--text);
  color: var(--bg);
}

/* =========================================================
   Typography
   ========================================================= */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   Layout primitives
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.prose {
  width: 100%;
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 3.5rem var(--pad-x) 6rem;
}

.prose h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.75rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.005em;
}

.prose p {
  color: var(--text);
}

.prose ul,
.prose ol {
  color: var(--text);
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li:last-child {
  margin-bottom: 0;
}

.prose p a,
.prose li a {
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}

.prose p a:hover,
.prose li a:hover {
  text-decoration-color: var(--text);
}

.prose .meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--pad-x-md);
    padding-right: var(--pad-x-md);
  }
  .prose {
    padding-left: var(--pad-x-md);
    padding-right: var(--pad-x-md);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--pad-x-lg);
    padding-right: var(--pad-x-lg);
  }
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

/* =========================================================
   Buttons / CTAs
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--text);
  color: var(--text);
  text-decoration: none;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.hero__copy {
  max-width: 38rem;
}

.hero__lede {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 25rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 3.5rem;
    padding-bottom: 6rem;
  }
}

/* =========================================================
   Image reel (pure-CSS marquee)
   ========================================================= */
.reel {
  margin-top: 3rem;
  overflow: hidden;
}

.reel__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: reel-scroll 90s linear infinite;
  will-change: transform;
}

.reel__track img {
  display: block;
  height: 14rem;
  width: auto;
  flex-shrink: 0;
  margin-right: 1rem;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

@keyframes reel-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 640px) {
  .reel {
    margin-top: 4rem;
  }
  .reel__track img {
    height: 18rem;
    margin-right: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .reel {
    margin-top: 5rem;
  }
  .reel__track {
    animation-duration: 120s;
  }
  .reel__track img {
    height: 22rem;
    margin-right: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel__track {
    animation: none;
  }
}

/* =========================================================
   Section primitives
   ========================================================= */
.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--rule);
}

.section__head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* =========================================================
   Feature row
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  background: transparent;
}

.feature h3 {
  margin-bottom: 0.4em;
  font-size: 1.0625rem;
  font-weight: 500;
}

.feature p {
  color: var(--muted);
}

@media (min-width: 640px) {
  .feature {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  display: grid;
  gap: 0;
  max-width: 48rem;
}

.faq details {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 400;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
  color: var(--text);
}

.faq summary:hover::after {
  color: var(--text);
}

.faq__answer {
  color: var(--muted);
  margin: 0.75rem 0 0;
  max-width: 38rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.site-footer .footer-mark {
  color: var(--text);
  font-weight: 500;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.site-footer nav a {
  color: var(--muted);
}

.site-footer nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-footer .sep {
  color: var(--rule);
  user-select: none;
}

@media (min-width: 640px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =========================================================
   404
   ========================================================= */
.error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--pad-x);
  gap: 1rem;
}

.error h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.error p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0;
}

.error .btn {
  margin-top: 1rem;
}
