/* ============================================================
   doc.css — the reading pages (privacy, support).
   Same tokens as index.html so the three pages are one site.
   A document, not a pitch: no parallax, no confetti, one column.
   ============================================================ */
:root {
  /* Converted from AppColors.block(_:) light values — keep in step with the
     identical block in index.html. */
  --red:    oklch(0.672 0.179  25.5);   /* #F0605A */
  --orange: oklch(0.766 0.161  55.7);   /* #FF943D */
  --yellow: oklch(0.861 0.159  86.4);   /* #FFC93C */
  --green:  oklch(0.765 0.166 152.4);   /* #4CD07D */
  --blue:   oklch(0.682 0.158 253.5);   /* #4A9BF7 */
  --purple: oklch(0.640 0.195 296.9);   /* #9B6BF2 */
  --pink:   oklch(0.715 0.183 352.4);   /* #F56BAE */

  --action:      oklch(0.58 0.16 150);
  --action-deep: oklch(0.50 0.14 150);

  --ink:      oklch(0.26 0.045 260);
  --ink-soft: oklch(0.493 0.068 259.4);  /* AppColors.textSecondary #4A6288 */
  --sky-hi:   oklch(0.965 0.014 250);
  --sky-lo:   oklch(0.885 0.048 250);
  --paper:    oklch(0.985 0.006 250);
  --rule:     oklch(0.80 0.05 250);

  --shell: min(1180px, 92vw);
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);

  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.95rem);
  --step-0:  clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem);
  --step-1:  clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-2:  clamp(1.9rem, 1.55rem + 1.6vw, 3rem);
  --step-3:  clamp(2.7rem, 1.9rem + 3.6vw, 5.4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Archivo, "Helvetica Neue", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-hi) 0%, var(--sky-lo) 55%, var(--sky-hi) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Fredoka, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}

p, li { max-width: 68ch; }
p { margin: 0 0 1.1rem; }

a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
a:hover { border-bottom-color: var(--ink); }

.shell { width: var(--shell); margin-inline: auto; }

/* Keyboard users need to see where they are. */
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 0;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ============================================================
   Top bar — the wordmark, shrunk, as the way home.
   ============================================================ */
.bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.bar .shell { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
  font-family: Fredoka, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  letter-spacing: -0.04em;
  line-height: 1;
  border-bottom: 0;
}
.mark .b {
  display: inline-grid;
  place-items: center;
  width: 0.88em;
  height: 0.88em;
  border-radius: 0.2em;
  color: var(--paper);
  background: var(--c);
  box-shadow:
    inset 0 -0.07em 0 oklch(from var(--c) calc(l - 0.12) c h),
    inset 0 0.06em 0 oklch(from var(--c) calc(l + 0.1) c h),
    0 0.09em 0.2em oklch(0.26 0.045 260 / 0.22);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.4s var(--ease);
}
.mark:hover .b { transform: rotate(0deg); }
.mark .fetti { color: var(--ink); }

.bar nav { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: var(--step--1); }
.bar nav a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 600; }

/* ============================================================
   Document
   ============================================================ */
main { padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(4rem, 10vh, 7rem); }

.doc-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.eyebrow {
  font-family: Fredoka, system-ui, sans-serif;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, var(--ink-soft));
  margin: 0 0 1rem;
}
h1 { font-size: var(--step-3); max-width: 16ch; }
.stamp { margin-top: 1.2rem; color: var(--ink-soft); font-size: var(--step--1); }
.lede { font-size: var(--step-1); line-height: 1.4; margin-top: 1.6rem; max-width: 42ch; }

h2 {
  font-size: var(--step-2);
  margin: clamp(2.8rem, 6vw, 4rem) 0 1.2rem;
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--rule);
  max-width: 22ch;
}
h2:first-of-type { border-top: 0; padding-top: 0; }

h3 { font-size: var(--step-1); margin: 2.2rem 0 0.6rem; }

ul { padding-left: 1.15rem; margin: 0 0 1.1rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--accent, var(--ink-soft)); }

.muted { color: var(--ink-soft); }

/* A single claim worth setting apart. */
.pull {
  margin: 2rem 0;
  padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 2.1rem);
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent, var(--action));
  box-shadow: 0 18px 36px -28px oklch(0.26 0.045 260 / 0.5);
}
.pull p:last-child { margin-bottom: 0; }

/* ============================================================
   Support FAQ — numbered rules, echoing the landing page list.
   ============================================================ */
.faq { list-style: none; margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 0; }
.faq > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(0.9rem, 3vw, 2.2rem);
  align-items: baseline;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--rule);
  max-width: none;
}
.faq > li:last-child { border-bottom: 1px solid var(--rule); }
.faq .n {
  font-family: Fredoka, system-ui, sans-serif;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.6rem);
  font-weight: 600;
  color: var(--c);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.faq h3 { font-size: var(--step-1); margin: 0 0 0.5rem; }
.faq p { color: var(--ink-soft); margin-bottom: 0; }
.faq p + p { margin-top: 0.8rem; }

/* ============================================================
   Contact block + footer
   ============================================================ */
.contact {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 22px 44px -30px oklch(0.26 0.045 260 / 0.5);
}
.contact h2 { border-top: 0; padding-top: 0; margin: 0 0 0.8rem; font-size: var(--step-1); }

.mailto {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.8rem 1.4rem 0.85rem;
  border-radius: 999px;
  background: var(--action);
  color: var(--paper);
  font-family: Fredoka, system-ui, sans-serif;
  font-weight: 600;
  border-bottom: 0;
  box-shadow:
    inset 0 -3px 0 var(--action-deep),
    0 10px 24px oklch(0.50 0.14 150 / 0.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.mailto:hover { transform: translateY(-2px); border-bottom: 0; box-shadow: inset 0 -3px 0 var(--action-deep), 0 16px 32px oklch(0.50 0.14 150 / 0.36); }
.mailto:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--action-deep); }

footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* A support page is a page people print or save. */
@media print {
  body { background: #fff; }
  .bar nav, .mailto, .skip { display: none; }
  .pull, .contact { box-shadow: none; }
}
