/*
 * Privacy, Terms and Support, in the app's own voice: the ink wall, words in Cloud Dancer, SF Pro Rounded, a soft
 * light from above, and gold only for the one thing to do next. Every gap is a Fibonacci step, as in the app.
 */

:root {
  color-scheme: dark;
  --ink: #0d0c0b;
  --surface: #171513;
  --surface-2: #211f1c;
  --text: #f0eee9;
  --text-body: rgb(240 238 233 / 0.84);
  --text-2: #bab7b0;
  --text-3: #8d8a83;
  --line: rgb(240 238 233 / 0.08);
  --line-2: rgb(240 238 233 / 0.16);
  --gold: #ffd166;
  --gold-top: #ffd678;
  --gold-bottom: #fac24d;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --logo: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --page: 68rem;
  --measure: 42rem;
  --gutter: 21px;
  --bar: 55px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 34px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(130% 48rem at 50% -14rem, rgb(255 209 102 / 0.15), rgb(255 209 102 / 0.05) 42%, transparent 72%)
      no-repeat,
    var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.62 var(--round);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 20;
  padding: 8px 13px;
  border-radius: 13px;
  background: var(--text);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The bar: the logo, the three pages, and where the app will be. */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(13 12 11 / 0.74);
  -webkit-backdrop-filter: saturate(1.5) blur(21px);
  backdrop-filter: saturate(1.5) blur(21px);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: var(--page);
  min-height: var(--bar);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--text);
  font: italic 600 1.375rem/1 var(--logo);
  text-decoration: none;
}

.logo::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgb(255 209 102 / 0.7);
}

.nav {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: rgb(240 238 233 / 0.06);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgb(240 238 233 / 0.1);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* The top of each page: one big line, what it means in a sentence, and the facts at a glance. */

.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: 89px var(--gutter) 55px;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.5rem, 1.55rem + 3.8vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  margin: 21px 0 0;
  color: var(--text-2);
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.dates {
  margin: 13px 0 0;
  color: var(--text-3);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.dates span {
  white-space: nowrap;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
}

.facts .icon {
  width: 1rem;
  height: 1rem;
  color: var(--text-2);
}

/* The document: contents beside it on a wide screen, folded above it on a phone. */

.doc {
  display: grid;
  gap: 34px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) 89px;
}

.toc-rail {
  display: none;
}

.toc-title {
  margin: 0 0 8px;
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 700;
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
}

.toc-list a {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc-list a::before {
  content: counter(toc);
  min-width: 1.25rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.toc-list a:hover {
  color: var(--text);
}

.toc-fold {
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
}

.toc-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 21px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.toc-fold summary::after,
.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin: 0 3px 3px 13px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.toc-fold[open] summary::after,
.faq details[open] summary::after {
  margin-bottom: -3px;
  transform: rotate(-135deg);
}

.toc-fold .toc-list {
  padding: 0 21px 13px;
}

@media (min-width: 1024px) {
  .doc {
    grid-template-columns: 13rem minmax(0, var(--measure));
    column-gap: 89px;
  }

  .toc-rail {
    display: block;
    position: sticky;
    top: calc(var(--bar) + 34px);
    align-self: start;
  }

  .toc-fold {
    display: none;
  }
}

/* The words themselves: a comfortable line, numbered sections, nothing loud. */

.prose {
  min-width: 0;
  max-width: var(--measure);
}

.prose > section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 13px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.prose h2 .n {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.prose h3 {
  margin: 21px 0 5px;
  font-size: 1.125rem;
  font-weight: 700;
}

.prose p,
.prose li {
  color: var(--text-body);
  text-wrap: pretty;
}

.prose p {
  margin: 0 0 13px;
}

.prose ul {
  margin: 0 0 13px;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  margin: 8px 0;
  padding-left: 21px;
}

.prose li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}

.prose a,
.faq a,
.card a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgb(240 238 233 / 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.prose a:hover,
.faq a:hover,
.card a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.prose blockquote {
  margin: 13px 0 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
}

.prose blockquote p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Support: the one action, quick answers as cards, and the rest folded away. */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 55px;
  padding: 0 21px;
  border-radius: 18px;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
}

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

.button-gold {
  background: linear-gradient(var(--gold-top), var(--gold-bottom));
  box-shadow: 0 8px 21px -8px rgb(250 194 77 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.34);
  color: var(--ink);
}

.button-gold:hover {
  filter: brightness(1.04);
}

.button-quiet {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
}

.button-quiet:hover {
  background: var(--surface-2);
}

.section-title {
  margin: 0 0 21px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.help {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) 89px;
}

.help > section + section {
  margin-top: 89px;
}

.cards {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

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

.card h3 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 13px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.badge {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.55;
}

.card p + p {
  margin-top: 8px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 8px 0 0;
  padding-left: 34px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.55;
  counter-increment: step;
}

.steps li:first-child {
  margin-top: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 700;
}

.steps strong,
.card strong {
  color: var(--text);
  font-weight: 700;
}

.pro {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(255 209 102 / 0.14);
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 0;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq .answer {
  padding: 0 0 21px;
}

.faq .answer p,
.faq .answer li {
  color: var(--text-body);
}

.faq .answer p {
  margin: 0 0 13px;
}

.faq .answer ol {
  margin: 0 0 13px;
  padding-left: 21px;
}

.faq .answer li {
  margin: 5px 0;
  padding-left: 5px;
}

.note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 34px 0 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  color: var(--text-2);
}

.note .icon {
  margin-top: 3px;
  color: var(--text);
}

.contact {
  display: grid;
  gap: 21px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgb(255 209 102 / 0.08), transparent 60%),
    var(--surface);
}

.contact h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.contact p {
  margin: 8px 0 0;
  color: var(--text-2);
}

@media (min-width: 760px) {
  .contact {
    grid-template-columns: 1fr auto;
  }
}

/* The foot of every page. */

.foot {
  border-top: 1px solid var(--line);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px 34px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 34px var(--gutter) 55px;
  color: var(--text-3);
  font-size: 0.875rem;
}

.foot-inner p {
  margin: 0;
}

.foot-inner p a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgb(240 238 233 / 0.38);
  text-underline-offset: 3px;
}

.foot-inner p a:hover {
  color: var(--gold);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 21px;
}

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

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

.foot .fine {
  flex-basis: 100%;
  color: var(--text-3);
  font-size: 0.8125rem;
}

@media (max-width: 640px) {
  :root {
    --gutter: 21px;
  }

  .bar .soon {
    display: none;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 0.875rem;
  }

  .hero {
    padding-top: 55px;
    padding-bottom: 34px;
  }

  .contact {
    padding: 21px;
    border-radius: 21px;
  }
}
