/* Privacy, support and 404 pages. Colors mirror the app's DesignSystem package. */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #202321;
  --ink-2: #656861;
  --line: #e3e4dd;
  --accent: #e8b64c;
  --on-accent: #202321;
  --accent-ink: #785b17;
  --accent-tint: #f0e5c5;
  --pointer: #62a3f2;
  --hero-top: #1d2129;
  --hero-bottom: #12141a;
  --card-ink: #f5f5f4;

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1080px;
  --gutter: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171818;
    --surface: #242626;
    --ink: #f4f3ef;
    --ink-2: #b0b4ac;
    --line: #393c37;
    --accent-ink: #ecd18a;
    --accent-tint: #413822;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-ink);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--pointer);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav .button {
  color: var(--on-accent);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.button:hover {
  filter: brightness(1.04);
  text-decoration: none;
}

.button:active {
  transform: scale(0.98);
}

.button svg {
  width: 20px;
  height: 20px;
}

.button-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

/* Footer */

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

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

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

.site-footer p {
  margin: 0;
}

/* Document pages: privacy and support */

.doc {
  padding: 56px 0 80px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
}

.doc .meta {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

.doc h2 {
  margin: 48px 0 0;
  padding-top: 8px;
  font-size: 26px;
  font-weight: 700;
  scroll-margin-top: 80px;
}

.doc h3 {
  margin: 28px 0 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.doc p,
.doc ul,
.doc ol {
  margin: 12px 0 0;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 6px;
}

.doc li::marker {
  color: var(--ink-2);
}

.summary {
  margin: 32px 0 0;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.summary h2 {
  margin: 0;
  padding: 0;
  font-size: 18px;
}

.summary ul {
  margin-top: 10px;
}

.doc .toc {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14.5px;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--ink-2);
}

.contact-card {
  margin: 32px 0 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-card h2 {
  margin: 0;
  padding: 0;
  font-size: 22px;
}

.contact-card p {
  color: var(--ink-2);
}

.contact-card .cta-row {
  margin-top: 20px;
}

.email {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.faq {
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 16px 36px 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: -2px;
}

.faq .answer {
  padding: 0 0 18px;
  color: var(--ink-2);
}

.faq .answer > :first-child {
  margin-top: 0;
}

.faq .answer strong {
  color: var(--ink);
  font-weight: 600;
}

.keys {
  width: 100%;
  margin: 12px 0 0;
  border-collapse: collapse;
  font-size: 15.5px;
}

.keys th,
.keys td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.keys th {
  width: 40%;
  padding-right: 16px;
  font-weight: 600;
  color: var(--ink);
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}

.not-found h1 {
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
}

.not-found p {
  margin: 12px 0 28px;
  color: var(--ink-2);
}
