/*
  Shared by the help, privacy and terms pages. The tokens, header, footer and
  store button are copied from the home page (../index.html) so the whole
  site reads as one; keep them in step if the home page changes.
*/
:root {
  color-scheme: dark;
  --bg: #0F1220;
  --bg-deep: #0A0C17;
  --raised: #171B2E;
  --surface: #1E2340;
  --well: #262B47;
  --line: #2C3155;
  --text: #F4F5FB;
  --muted: #9BA0C3;
  --dim: #7A80A6;
  --root: #FFC53D;
  --major: #4FD1C5;
  --minor: #8B7CF6;
  --dim7: #F5588A;
  --on-color: #0F1220;
  --display: 'Outfit', system-ui, sans-serif;
  --ui: 'Barlow Semi Condensed', system-ui, sans-serif;
  --page: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 1.1875rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--root); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--root); color: var(--on-color); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.08; }
h3 { font-size: 1.45rem; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
.lede { color: var(--muted); font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.45; max-width: 40ch; }

/* Store button, as on the home page. */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--major); color: var(--on-color);
  text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  padding: 14px 24px 14px 18px; border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease;
}
.store:hover { background: #6EDCD2; }
.store:active { transform: scale(.98); }
.store svg { width: 22px; height: 22px; flex: none; }
.store span { line-height: 1.1; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(15, 18, 32, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 1.05rem; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.top nav a.store, .top nav a.store:hover { color: var(--on-color); }
.top .store { padding: 9px 18px 9px 14px; font-size: .95rem; white-space: nowrap; }
.top .store svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .top nav a:not(.store) { display: none; } }
@media (max-width: 420px) {
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .top .store { padding: 8px 14px 8px 12px; font-size: .9rem; gap: 8px; }
  .top .store svg { width: 16px; height: 16px; }
}

/* Page opening, with the contents as a row of jump links. */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.page-head .wrap { display: grid; gap: 22px; justify-items: start; }
.contents { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.contents a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 13px; border-radius: 999px;
  background: var(--raised); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: 1.05rem; color: var(--text);
  transition: border-color .15s ease, background-color .15s ease;
}
.contents a:hover { border-color: var(--c, var(--major)); background: var(--surface); }
.contents a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); }

/* Sections */
.band { padding: clamp(56px, 8vw, 96px) 0; }
.band.deep { background: var(--bg-deep); }
.band-head { display: grid; gap: 12px; max-width: 46ch; margin-bottom: clamp(28px, 4vw, 44px); }
.band-head p { color: var(--muted); }

/* Getting around: four things to know. */
.basics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.basics > div { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 3px solid var(--c, var(--major)); }
.basics h3 { font-size: 1.3rem; }
.basics p { color: var(--muted); }
@media (max-width: 960px) { .basics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .basics { grid-template-columns: 1fr; } }

/* Tool guides: a screenshot beside the how-to, the same layout for every tool. */
.tool { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(36px, 5vw, 56px) 0; }
.tool + .tool { border-top: 1px solid var(--line); }
.tool .shot { width: 100%; border-radius: 30px; border: 7px solid var(--well); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.tool-text { display: grid; gap: 14px; max-width: 38rem; }
.tag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-weight: 600; font-size: 1.05rem; }
.tag b { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.tag b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--major)); }
.tag .lock { color: var(--root); font-size: 1rem; }
.tool-text > p { color: var(--muted); }
.how { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.how li { display: flex; gap: 12px; align-items: baseline; }
.how li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--major)); transform: translateY(-3px); }
@media (max-width: 760px) {
  .tool { grid-template-columns: 1fr; }
  .tool .shot { width: min(220px, 64%); order: 2; }
}

/* Practice tips */
.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tips > div { display: grid; gap: 8px; align-content: start; padding: 24px 26px 26px; background: var(--raised); border-radius: 18px; }
.tips h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.tips h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--major)); }
.tips p { color: var(--muted); }
@media (max-width: 640px) { .tips { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 500; line-height: 1; color: var(--major); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Still stuck */
.contact { padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 88px); text-align: center; }
.contact .wrap { display: grid; justify-items: center; gap: 20px; }
.contact p { color: var(--muted); max-width: 40ch; }

/* Legal pages */
.legal { max-width: 48rem; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px); }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--dim); font-size: 1.05rem; margin-bottom: 36px; }
.legal section { display: grid; gap: 12px; margin-bottom: 34px; }
.legal h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--major); }

/* Footer, as on the home page. */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 1rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
