/* The site's documents (/terms, /privacy, /support; scripts/docs.mjs), on top of front.css: its type, colours,
   buttons and foot. A calm paper page: the mark home on top, one readable column, the front page's foot. */

.doc-page { min-height: 100svh; display: flex; flex-direction: column; }
.doc-page > main { flex: 1 0 auto; }
.doc-page :focus-visible { outline-offset: 2px; }

/* The bar: the mark home, and the two ways in (doc.js swaps them for her account once she's signed in) */
.doc-bar { display: flex; align-items: center; height: 76px; }
.doc-bar .brand { color: var(--ink); }
.doc-bar .brand .mark { color: var(--violet); }
.doc-doors { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.doc-signin { font-size: 15px; font-weight: 600; color: var(--ink); }
.doc-signin:hover { color: var(--violet); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #352a42; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
.btn-violet { background: var(--violet); color: #fff; box-shadow: 0 10px 24px -12px rgb(91 62 230 / 0.7); }
.btn-violet:hover { background: #5b3ee6; }
.btn-violet:disabled { opacity: 0.55; cursor: default; box-shadow: none; }

/* One column of text, at a length that reads */
.doc { width: 100%; max-width: 760px; margin: 0 auto; padding: 64px var(--gutter) 112px; color: #423b54; }
.doc h1 { font-size: clamp(42px, 6vw, 64px); line-height: 1; letter-spacing: -0.045em; }
.doc-meta { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--mute); }
.doc .doc-meta strong { color: var(--mute); font-weight: 600; }
.doc h1 + p:not(.doc-meta), .doc .doc-meta + p { margin-top: 36px; }
.doc h2 { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 24px; line-height: 1.25; letter-spacing: -0.025em; scroll-margin-top: 24px; }
.doc h3 { margin-top: 36px; font-size: 18px; line-height: 1.35; letter-spacing: -0.015em; scroll-margin-top: 24px; }
.doc p, .doc ul { margin-top: 16px; font-size: 17px; line-height: 1.72; }
.doc h2 + p, .doc h3 + p, .doc h2 + ul, .doc h3 + ul { margin-top: 14px; }
.doc ul { list-style: none; }
.doc li { position: relative; padding-left: 24px; }
.doc li + li { margin-top: 10px; }
.doc li::before { content: ""; position: absolute; left: 6px; top: 0.74em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); opacity: 0.55; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc em { font-style: italic; }
.doc a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:hover { text-decoration-thickness: 2px; }

/* Support: the form, in a card on the paper */
.doc-form-page { max-width: 600px; }
.doc-form { margin-top: 36px; display: grid; gap: 20px; padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgb(29 20 38 / 0.04), 0 30px 60px -36px rgb(30 10 90 / 0.45); }
.doc-field { display: grid; gap: 8px; }
.doc-field span { font-size: 14px; font-weight: 600; color: var(--ink); }
.doc-field input, .doc-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf8; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; padding: 13px 16px; transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.doc-field textarea { min-height: 156px; resize: vertical; }
.doc-field input:focus, .doc-field textarea:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgb(109 74 255 / 0.16); }
.doc-error { margin: -4px 0 0; font-size: 14px; color: #c42b3a; }
.doc-send { width: 100%; height: 54px; }
.doc-sent { margin-top: 36px; padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgb(29 20 38 / 0.04), 0 30px 60px -36px rgb(30 10 90 / 0.45); }
.doc-sent h2 { margin: 0; padding: 0; border: 0; font-size: 22px; }
.doc-sent p { margin-top: 8px; }
.doc-or { margin-top: 24px; text-align: center; }

@media (max-width: 680px) {
  .doc-bar { height: 64px; }
  .doc-doors { gap: 14px; }
  .doc { padding: 40px 20px 88px; }
  .doc h2 { margin-top: 48px; padding-top: 28px; font-size: 22px; }
  .doc p, .doc ul { font-size: 16px; }
  .doc-form, .doc-sent { padding: 20px; border-radius: 20px; }
}
@media (max-width: 380px) {
  .doc-signin { display: none; }
}

/* Support's own layout (as Sign in's): the form on paper on one side, the front page's silk print framed on the other
   (front.js draws it), its line low on a deeper shade; on a phone the print is a band on top with the bar on it, and
   the form on a sheet over it */
.split-page { background: var(--page); }
.split { display: grid; grid-template-columns: minmax(440px, 46fr) 54fr; min-height: 100svh; }
.split-side { display: flex; flex-direction: column; min-width: 0; padding: 0 56px; }
.split-bar { padding: 0; }
.split-main { margin: auto 0; padding: 48px 0; max-width: 420px; width: 100%; align-self: center; }
.split-main h1 { font-size: clamp(44px, 4.6vw, 60px); }
.split-main .doc-form { margin-top: 32px; padding: 0; border-radius: 0; background: none; box-shadow: none; gap: 18px; }
.split-main .doc-field input, .split-main .doc-field textarea { background: #fff; }
.split-main .doc-sent { margin-top: 32px; }
.split-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 20px 0 28px; font-size: 14px; color: var(--mute); }
.split-foot a:hover { color: var(--ink); }
.split-art { margin: 12px 12px 12px 0; border-radius: 28px; min-height: calc(100svh - 24px); }
.split-art .print { border-radius: inherit; }
.split-art::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(to top, rgb(52 30 170 / 0.55), transparent 45%); }
.split-art-bar { display: none; }
.split-art .split-line {
  position: absolute; left: 48px; right: 48px; bottom: 44px; margin: 0;
  font-size: clamp(44px, 4.4vw, 64px); font-weight: 600; line-height: 0.92; letter-spacing: -0.05em; color: #fff;
  text-shadow: 0 2px 4px rgb(35 15 120 / 0.18), 0 10px 40px rgb(35 15 120 / 0.38);
}

@media (max-width: 900px) {
  .split { display: flex; flex-direction: column; }
  .split-art { order: -1; margin: 0; border-radius: 0; min-height: 0; height: 216px; flex: none; }
  .split-art::after { background: linear-gradient(to bottom, rgb(52 30 170 / 0.72), rgb(52 30 170 / 0.3) 45%, transparent 80%); }
  .split-art-bar { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; }
  .split-art-bar .brand, .split-art-bar .nav-signin { text-shadow: 0 1px 3px rgb(35 15 120 / 0.35), 0 4px 16px rgb(35 15 120 / 0.4); }
  .split-art-bar .doc-doors { margin-left: auto; display: flex; align-items: center; gap: 16px; }
  .split-art-bar .nav-signin { display: inline; color: #fff; white-space: nowrap; }
  .split-art .split-line { display: none; }
  .split-bar { display: none; }
  .split-side { position: relative; z-index: 1; margin-top: -28px; padding: 28px 20px 0; border-radius: 28px 28px 0 0; background: var(--page); flex: 1; }
  .split-main { margin: 0; padding: 0 0 28px; max-width: none; }
  .split-main h1 { font-size: 38px; }
}

/* The smallest phones: the brand, Sign in and Create account still fit on the band's one line */
@media (max-width: 360px) {
  .split-art-bar { padding: 0 14px; gap: 8px; }
  .split-art-bar .brand { font-size: 17px; gap: 7px; }
  .split-art-bar .doc-doors { gap: 12px; }
  .split-art-bar .btn-small { padding: 0 14px; font-size: 14px; }
  .split-side { padding-left: 16px; padding-right: 16px; }
}

/* The help center (scripts/docs.mjs buildHelp): every article as a row, its one line under it; an article's way back
   above its title; Support at the foot of each page for what they don't cover */
.help-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.help-list li { margin: 0; border-bottom: 1px solid var(--line); }
.help-list a { display: grid; gap: 4px; padding: 20px 2px; color: inherit; text-decoration: none; }
.help-list strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.help-list span { font-size: 16px; color: #6f6b80; }
@media (hover: hover) { .help-list a:hover strong { color: var(--violet); } }
.help-back { display: inline-block; margin-bottom: 18px; font-size: 15px; font-weight: 600; color: var(--violet); text-decoration: none; }
.help-back::before { content: "‹ "; }
.help-more { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.doc .help-more h2 { margin: 0 0 18px; padding: 0; border: 0; font-size: 22px; }
.help-more .btn { display: inline-flex; }
/* (the documents' list dots and link colour stay off the help center's rows and its button) */
.doc .help-list li { padding: 0; }
.doc .help-list li + li { margin-top: 0; }
.doc .help-list li::before { content: none; }
.doc .help-list a, .doc .help-back { text-decoration: none; }
.doc a.btn-violet { color: #fff; text-decoration: none; }
/* an article's steps are numbered, a violet number in front of each */
.doc ol { margin-top: 16px; padding: 0; list-style: none; counter-reset: step; font-size: 17px; line-height: 1.72; }
.doc ol li { counter-increment: step; padding-left: 32px; }
.doc ol li::before { content: counter(step); left: 0; top: 0.28em; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; opacity: 1; }
.doc h1 + ol, .doc h1 + ul { margin-top: 32px; }
@media (max-width: 680px) { .doc ol { font-size: 16px; } }

/* Hidden means hidden: the form's own layout would otherwise keep it on screen after it's sent */
.doc-form[hidden], .doc-sent[hidden], .doc-error[hidden] { display: none; }
.doc .doc-sent h2 { margin: 0; padding: 0; border: 0; }
