/* Support, Privacy and Terms. The homepage's fonts, colours, header and footer,
   cut down to one readable column. The homepage keeps its own copy inline;
   change both together. */

@font-face {
  font-family: "Nunito";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/nunito-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/nunito-latin-800.woff2") format("woff2");
}

:root {
  --ink: #2a1e36;
  --ink-2: #5d5268;
  --ink-3: #8b8196;
  --line: #eee8f2;

  --orange: #f57029;
  --orange-press: #dc5915;
  --purple: #996df5;
  --purple-ink: #7148dc;

  --peach-soft: #ffe0c7;
  --lavender: #e8e0ff;
  --pink: #ffd9e3;

  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --read: 680px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 18px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Nothing on these pages should scroll sideways; clip at the root too, since
   iOS Safari ignores a body-only clip. */
html,
body {
  overflow-x: clip;
}

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

a {
  color: inherit;
}

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

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

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

/* ───────────── Header, as on the homepage ───────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 25px/1 var(--display);
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(42, 30, 54, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: 700 16px/1 var(--display);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 18px -8px rgba(245, 112, 41, 0.8);
  transition: background-color 0.15s, transform 0.15s;
}

.btn:hover {
  background: var(--orange-press);
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  font-size: 18px;
  margin-top: -2px;
}

/* ───────────── Header menu (nav.js) ─────────────
   Inline links on desktop; a button and a dropdown panel on phones. Without
   JS the links stay in a row under the logo. The homepage keeps its own copy
   of this block inline; change both together. */

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  font: 700 16px/1 var(--display);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}

.menu-btn .icon-close,
.nav.open .menu-btn .icon-open {
  display: none;
}

.nav.open .menu-btn .icon-close {
  display: block;
}

@media (max-width: 720px) {
  .js .menu-btn {
    display: inline-flex;
  }

  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -22px rgba(42, 30, 54, 0.3);
    font-size: 19px;
  }

  .js .nav.open .nav-links {
    display: flex;
  }

  .js .nav-links a {
    padding: 15px 0;
  }

  .js .nav-links a + a {
    border-top: 1px solid var(--line);
  }

  html:not(.js) .nav-row {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding-block: 10px;
  }

  html:not(.js) .nav-links {
    order: 3;
    width: 100%;
  }
}

/* ───────────── The document ───────────── */

.doc {
  max-width: calc(var(--read) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(72px, 9vw, 120px);
}

.doc h1,
.doc h2,
.doc h3 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}

.doc h1 {
  font-size: clamp(38px, 5.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.doc h2 {
  font-size: clamp(25px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 56px 0 14px;
}

.doc h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 36px 0 8px;
}

.doc p,
.doc ul {
  margin: 0 0 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

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

.doc li {
  margin: 0 0 10px;
}

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

.doc strong {
  font-weight: 650;
}

.doc a {
  color: var(--purple-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(113, 72, 220, 0.4);
  transition: text-decoration-color 0.15s;
}

.doc a:hover {
  text-decoration-color: currentColor;
}

/* The "Last updated" line under the title. */
.doc .updated {
  margin: 16px 0 32px;
  font-size: 15px;
  color: var(--ink-3);
}

.doc .updated em {
  font-style: normal;
}

/* ───────────── Support's contact card ───────────── */

.help {
  margin: 0 0 40px;
  padding: 26px clamp(20px, 4vw, 30px) 24px;
  border-radius: 24px;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 217, 227, 0.9), transparent 70%),
    radial-gradient(70% 90% at 0% 100%, rgba(232, 224, 255, 0.95), transparent 70%),
    var(--peach-soft);
  display: grid;
  gap: 18px;
  justify-items: start;
}

.doc .help h2 {
  margin: 0;
  font-size: 26px;
}

.doc .help .btn {
  color: #fff;
  text-decoration: none;
  padding: 14px 22px;
  font-size: 17px;
}

.doc .help p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-2);
}

.help p .icon {
  font-size: 20px;
  color: var(--purple-ink);
}

/* ───────────── Footer, as on the homepage ───────────── */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-3);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer .brand {
  font-size: 22px;
  color: var(--ink);
}

.footer .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

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

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

.social {
  display: flex;
  gap: 4px;
  margin-left: -10px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
}

.footer small {
  font-size: 14px;
  flex-basis: 100%;
}

/* ───────────── Narrower screens ───────────── */

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .brand {
    font-size: 22px;
  }

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

  .btn {
    padding: 11px 16px;
    font-size: 15px;
  }

  .doc h2 {
    margin-top: 44px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
