/* Mavoo's website. The colours and the wordmark are the app's own (App.js and assets/icon.png).
   Mobile first: the small-screen layout is the default, and wider screens add to it. */

:root {
  --bg: #0a0a0f;            /* the app's background */
  --surface: #111116;       /* the app's cards */
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.55); /* 4.5:1 or more on --bg, for small print */
  --primary: #7c3aed;       /* the app's buttons */
  --accent: #a78bfa;        /* the wordmark's "oo" and the app's links */
  --accent-soft: #c4b5fd;
  --icon-purple: #4f02c6;   /* the app icon's square */
  --icon-pink: #fc1d95;     /* the app icon's dot */
  --radius: 16px;
  --gutter: 20px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

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

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

a:hover {
  color: var(--accent-soft);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--text);
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The wordmark, as the app draws it: "mav" in white and "oo" in the accent, bold and tight. */
.wordmark {
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  text-transform: lowercase;
}

.wordmark .accent {
  color: var(--accent);
}

/* The header on the inner pages: the icon and wordmark, the size of the app's Home logo. */
.site-header {
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.375rem;
}

.brand img {
  width: 32px;
  height: 32px;
}

/* Home's top: the app's sign-in screen, with its icon, wordmark and tagline. */
.hero {
  padding: 56px 0 48px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(124, 58, 237, 0.28) 0%, rgba(76, 29, 149, 0.12) 45%, rgba(10, 10, 15, 0) 75%);
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(79, 2, 198, 0.45);
}

.hero .wordmark {
  font-size: 3.25rem;
  line-height: 1;
}

.tagline {
  margin-top: 10px;
  text-wrap: balance;
  color: var(--text-faint);
  font-size: 0.9375rem;
}

.hero-lead {
  margin: 28px auto 0;
  max-width: 30ch;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* A status, not a button: there's nothing to tap until the app is out. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--icon-pink);
  box-shadow: 0 0 0 4px rgba(252, 29, 149, 0.18);
}

.section {
  padding: 40px 0;
}

.section h2 {
  font-size: 1.5rem;
}

.section-intro {
  margin-top: 12px;
  color: var(--text-muted);
}

.features {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.card-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.card h3 {
  margin-top: 12px;
  font-size: 1.0625rem;
}

.card p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.unis {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.unis li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
}

.unis li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.small-print {
  margin-top: 16px;
  color: var(--text-faint);
  font-size: 0.875rem;
}

.contact {
  text-align: center;
}

/* The app's primary button. */
.button {
  display: inline-block;
  margin-top: 20px;
  padding: 16px 28px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  color: var(--text);
  background: #6d28d9;
}

/* Privacy Policy and Terms. */
.page {
  padding: 32px 0 56px;
}

.page h1 {
  font-size: 2rem;
}

.page .pill {
  margin-top: 20px;
  color: var(--text);
}

.page p {
  margin-top: 20px;
  color: var(--text-muted);
}

/* The policy and terms themselves: short sections, lists and a few tables. */
.page .updated {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 0.875rem;
}

.toc {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.toc h2 {
  font-size: 1rem;
}

.toc ol {
  margin: 12px 0 0;
  padding-left: 1.5em;
  color: var(--text-faint);
  font-size: 0.9375rem;
}

.toc li + li {
  margin-top: 4px;
}

.legal h2 {
  margin-top: 44px;
  font-size: 1.375rem;
  scroll-margin-top: 16px;
}

.legal p,
.legal li,
.legal td,
.legal th {
  color: var(--text-muted);
}

.legal strong {
  color: var(--text);
}

.legal ul,
.legal ol {
  margin: 16px 0 0;
  padding-left: 1.4em;
}

.legal li + li,
.legal li > ul,
.legal li > ol {
  margin-top: 8px;
}

.legal li::marker {
  color: var(--accent);
}

/* On a phone each table row is a card: its first cell as the heading, then each other cell under its
   column's name. Wider screens draw a real table. */
.table-wrap {
  margin-top: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

@media (max-width: 639px) {
  .legal thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .legal table,
  .legal tbody,
  .legal tr,
  .legal th,
  .legal td {
    display: block;
  }

  .legal tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .legal tbody tr:last-child {
    border-bottom: 0;
  }

  .legal tbody th,
  .legal tbody td {
    padding: 0;
    border: 0;
  }

  .legal tbody td {
    margin-top: 6px;
  }

  .legal td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--text-faint);
    font-size: 0.8125rem;
  }

  /* With only two columns the label adds nothing. */
  .legal td:nth-child(2):last-child::before {
    content: none;
  }
}

.legal th,
.legal td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.legal thead th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.legal tbody th {
  font-weight: 600;
  color: var(--text);
}

.legal tbody tr:last-child th,
.legal tbody tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    padding: 88px 0 64px;
  }

  .hero-icon {
    width: 112px;
    height: 112px;
    border-radius: 21px;
  }

  .hero .wordmark {
    font-size: 4.5rem;
  }

  .hero-lead {
    font-size: 2rem;
  }

  .section {
    padding: 56px 0;
  }

  .section h2 {
    font-size: 1.875rem;
  }

  .features {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .unis {
    grid-template-columns: repeat(3, 1fr);
  }

  .page h1 {
    font-size: 2.5rem;
  }
}
