/* mandoura.com, built from the Strand website template in Figma
   (figma.com/design/i2QXuL8znqwqepP0z6WuE9: Homepage, ToS & PP, 404, Header,
   Footer). Dark theme only. The tokens carry the template's variable names. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('fonts/cabinet-grotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #110f0d;            /* backgrounds/primary */
  --surface: #1c1917;       /* surfaces/primary, buttons/secondary/background */
  --line: #292524;          /* borders/primary */
  --text: #fafaf9;          /* texts/primary */
  --text-2: #a6a09b;        /* texts/secondary */
  --text-3: #79716b;        /* texts/tertiary */
  --text-4: #57534d;        /* texts/disabled */
  --ghost: #f5f5f4;         /* buttons/secondary/content */
  --button-ink: #1c1917;    /* buttons/primary/content */
  --green: #10ec90;         /* utility/green */
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --display: 'Cabinet Grotesk', 'Geist', sans-serif;
  --column: 1600px;
  --pad: 40px;
  --gutter: 96px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lenis (assets/scroll.js), from its own lenis.css. Lenis animates the
   scroll itself, so the browser's smooth scroll is off while it runs. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* The page fills one screen: the header, the hero that takes the rest, and
   the footer at the bottom edge. */
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 8px;
}

/* The 1600px column. It has no side lines: the page is open to the edges. */
.column {
  max-width: var(--column);
  margin: 0 auto;
}

/* ---- header (Figma "Header", 68px) ---- */

.header .column {
  height: 68px;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 24px;
  letter-spacing: -0.02em;
}
.brand img { width: 27px; height: 24px; display: block; }

/* ---- buttons (Figma "Synapse - Buttons") ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  background: var(--text);
  color: var(--button-ink);
  border: 1px solid var(--text);
  transition: background-color 120ms ease, border-color 120ms ease;
}
.button:hover { background: #e7e5e4; border-color: #e7e5e4; }
.button--secondary {
  background: var(--surface);
  color: var(--ghost);
  border-color: var(--line);
}
.button--secondary:hover { background: #292524; border-color: #3a3532; }
.button--sm { height: 36px; padding: 0 14px; }
.button svg { width: 16px; height: 16px; flex: none; }

/* ---- pills ---- */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 10px;
  background: var(--green);
  border: 1px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(16, 236, 144, 0.25);
  flex: none;
}

/* ---- front page hero (Figma Homepage, Frame 936) ---- */

/* The hero takes the height that the header and the footer leave. */
.home { flex: 1; display: flex; flex-direction: column; width: 100%; }
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}
.notice .pill { gap: 6px; color: var(--text); }
.notice .dot { width: 7px; height: 7px; }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 480px;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 64px var(--pad);
}
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede { margin: 0; color: var(--text-2); font-size: 18px; line-height: 28px; max-width: 30rem; }

.hero__art { position: relative; min-height: 420px; }
.hero__art canvas, .lost canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- the dotted gutters (Figma "dot pattern", 13px tile) ---- */

.gutters {
  padding: 0 var(--gutter);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(250, 250, 249, 0.09) 1px, transparent 1.2px);
  background-size: 13px 13px;
  background-position: 6px 6px;
}
.inner { background: var(--bg); }

/* ---- legal pages (Figma "ToS & PP", Frame 1015) ---- */

.legal {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.legal__aside { grid-column: span 4; }
.legal__nav {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: var(--pad);
}
.legal__title { display: flex; flex-direction: column; gap: 4px; }
.legal__title h1 {
  margin: 0;
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.005em;
}
.updated { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-3); }
.toc {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
}
.toc a:hover { color: var(--text); }

.legal__body {
  grid-column: span 8;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.legal__body section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 24px;
}
.legal__body h2 {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}
.legal__body p, .legal__body ul {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}
.legal__body ul { padding-left: 21px; }
.legal__body li + li { margin-top: 12px; }
.legal__body strong { color: var(--text); font-weight: 500; }
.legal__body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---- 404 (Figma "404", Frame 1015) ---- */

.lost {
  position: relative;
  height: 900px;
  max-height: 80vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.lost__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lost__text h1, .lost__text p { text-shadow: 0 0 4px var(--bg), 0 0 12px var(--bg), 0 0 24px var(--bg); }
.lost__text h1 { margin: 0; font-weight: 600; font-size: 18px; line-height: 24px; }
.lost__text p { margin: 0 0 20px; font-size: 14px; line-height: 20px; color: var(--text-2); }

/* ---- footer (Figma "Footer") ---- */

/* One open row at the bottom of the screen: no box, no rules. */
.footer__in { width: 100%; }
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  padding: 24px var(--pad) 8px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}
.footer__links a { transition: color 120ms ease; }
.footer__links a:hover, .footer__links a[aria-current="page"] { color: var(--text); }

/* The app's line, from its sign-in page (Command the edge. / Unify.
   Simplify. Derisk.). */
.tagline { margin: 0; font-weight: 500; font-size: 14px; line-height: 20px; color: var(--text-3); }
.tagline span { color: var(--text); }

.footer__base {
  padding: 0 var(--pad) 24px;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-3);
}

/* ---- tablet and phone (Figma "/ Tablet" and "/ Phone") ---- */

@media (max-width: 1100px) {
  :root { --gutter: 40px; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__art { order: -1; min-height: 340px; }
  .legal__aside { grid-column: span 12; }
  .legal__nav { position: static; padding-bottom: 0; }
  .toc { display: none; }
  .legal__body { grid-column: span 12; border: 0; }
}

@media (max-width: 600px) {
  :root { --pad: 16px; --gutter: 0px; }
  .display { font-size: 44px; letter-spacing: -0.02em; }
  .hero__copy { padding: 40px var(--pad) 48px; gap: 20px; }
  .lede { font-size: 16px; line-height: 24px; }
  .hero__art { min-height: 300px; }
  .notice { font-size: 13px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .lost { min-height: 520px; }
}
