/* WishNap — help and legal pages (privacy.html, support.html, terms.html).
   Load after css/tokens.css. Every color, font, radius and shadow comes from
   a token there; this file only arranges them. Mobile first; no scripts. */

/* Numerals fallback: the same self-hosted Nunito as the home page (fonts/OFL.txt). */
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/nunito-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/nunito-800.woff2") format("woff2");
}

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

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

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

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--accent-soft);
}

a:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

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

strong {
  font-weight: 650;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--base);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--base);
}

/* ---------------------------------------------------------------- Frame
   One grid for the header title, the page body and the footer, so the title,
   the text column and the footer line up. Below 1024px: a single centred
   column at the reading measure. From 1024px: a contents rail + the text. */

.frame {
  --rail: 208px;
  --gap: 64px;
  width: 100%;
  max-width: calc(68ch + 32px);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 600px) {
  .frame {
    max-width: calc(68ch + 64px);
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .frame {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 68ch);
    column-gap: var(--gap);
    justify-content: center;
    max-width: none;
  }

  .frame > .span-all {
    grid-column: 1 / -1;
  }

  .frame > .col-text {
    grid-column: 2;
  }
}

/* ------------------------------------------------------------- Masthead */

.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 40px;
}

/* The page's one gradient: lavender light from the top corner, a little
   peach warmth, fading into the base. It carries the grain (tokens.css). */
.masthead__ground {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, transparent 58%, var(--base) 100%),
    radial-gradient(80% 110% at 96% -8%, var(--lav-500) 0%, var(--lav-100) 42%, transparent 78%),
    radial-gradient(42% 64% at -4% 0%, var(--peach) 0%, transparent 72%),
    var(--base);
  opacity: 0.82;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding-top: 4px;
}

/* The WishNap lockup, primary (terracotta mark, ink word), as on the home
   page: the masthead's peach corner and the footer are both light grounds.
   Byte-identical copies of brand/svg/, sized by height only so they never
   stretch. Clear space is one tag width, 0.79 of the height. The link is a
   44px tap target, as on the home page. Below 364px the lockup and the nav
   don't fit side by side with that clear space, so the masthead's <picture>
   swaps in the mark on its own (wishnap-mark-transparent.svg), as the brand
   kit says to do where the lockup doesn't fit. That mark is only 36px wide,
   so the link keeps a 44px minimum width too (the mark stays left-aligned). */
.wordmark {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: auto;
  max-width: none;
  height: 28px;
}

/* Forced colours (Windows high contrast) with a dark theme turn every ground
   dark, where terracotta and ink can't sit. The <picture>s then swap in the
   monochrome white lockup, and below 364px the white mark. That mark file
   (brand/svg/wishnap-mark-white.svg) is a padded square with the mark at 60%
   of its width, so it's drawn 44px tall to keep the mark itself 26px wide. */
@media (forced-colors: active) and (prefers-color-scheme: dark) and (max-width: 363px) {
  .masthead .wordmark img {
    height: 44px;
  }
}

.bar__nav {
  display: flex;
  align-items: center;
  margin-right: -10px;
}

/* Full ink: the lavender corner of the masthead sits behind these links, and
   --ink-muted drops under 4.5:1 there. The current page gets weight and an
   underline instead of a color change. */
.bar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.35em;
}

.bar__nav a:hover {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink-faint);
}

.bar__nav a[aria-current="page"] {
  font-weight: 650;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent-soft);
}

.title {
  padding-top: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.lede {
  margin: 14px 0 0;
  max-width: 34em;
  color: var(--ink-muted);
  font-size: 19px;
  line-height: 1.45;
  text-wrap: pretty;
}

.updated {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

@media (min-width: 1024px) {
  .title {
    padding-top: 56px;
  }

  h1 {
    font-size: 50px;
  }

  .lede {
    font-size: 20px;
  }

  .masthead {
    padding-bottom: 56px;
  }
}

/* ----------------------------------------------------------------- Body */

main.frame {
  padding-bottom: 88px;
}

.prose {
  min-width: 0;
  max-width: 68ch;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 56px 0 12px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.018em;
  text-wrap: balance;
  scroll-margin-top: 24px;
}

.prose h3 {
  margin: 32px 0 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.008em;
  scroll-margin-top: 24px;
}

/* Defaults at element weight, so the styled lists below (.dots, .steps,
   .tiers, .answers, .chips) override them with a single class. */
:where(.prose) :is(p, ul, ol, dl) {
  margin: 0 0 14px;
}

:where(.prose) :is(ul, ol) {
  padding-left: 1.25em;
}

:where(.prose) li {
  margin-bottom: 8px;
  padding-left: 0.15em;
}

.prose li::marker {
  color: var(--ink-faint);
}

.prose .note {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.5;
}

.prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--card-alt);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
}

.nw {
  white-space: nowrap;
}

/* A path through the app's or the iPhone's Settings. */
.path {
  font-weight: 600;
  white-space: normal;
}

/* Numerals set in SF Pro Rounded with tabular figures (tokens.css .num). */
.price {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 700;
}

/* ---------------------------------------------------------------- Cards */

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin: 20px 0 24px;
}

@media (min-width: 600px) {
  .card {
    padding: 24px 28px;
  }
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.prose .card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.012em;
}

.card--lead {
  margin-top: 0;
}

/* Dotted list for the short-version boxes. */
.dots {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prose .dots li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 22px;
}

.prose .dots li + li {
  border-top: 1px solid var(--hairline);
}

.dots li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(10px + 0.775em - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
}

/* ------------------------------------------------------ Contents (TOC) */

.toc-m {
  margin: 0 0 8px;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.toc-m summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.toc-m ol,
.toc-d ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-m ol {
  padding: 0 20px 14px;
}

.prose .toc-m li {
  margin: 0;
  padding: 0;
}

.toc-m a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
}

.toc-m li + li a {
  border-top: 1px solid var(--hairline);
}

.toc-d {
  display: none;
}

@media (min-width: 1024px) {
  .toc-m {
    display: none;
  }

  .toc-d {
    display: block;
    position: sticky;
    top: 28px;
    align-self: start;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 4px 0 24px;
  }

  .toc-d p {
    margin: 0 0 10px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .toc-d a {
    display: block;
    padding: 6px 0;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
  }

  .toc-d a:hover {
    color: var(--accent);
  }
}

/* The chevron shared by every <details> on these pages. */
.chev {
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 240ms var(--ease-calm);
}

details[open] > summary .chev {
  transform: translateY(2px) rotate(-135deg);
}

/* ------------------------------------------------ Ledger (data inventory) */

.ledger {
  padding: 4px 20px;
}

@media (min-width: 600px) {
  .ledger {
    padding: 6px 28px;
  }
}

.ledger__row {
  padding: 16px 0;
}

.ledger__row + .ledger__row {
  border-top: 1px solid var(--hairline);
}

.prose .ledger__row h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.ledger__row p {
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .chips li {
  margin: 0;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--card-alt);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.prose .chips li.chip--out {
  background: var(--goal-track);
  color: var(--accent-deep);
}

/* ----------------------------------------------------- Key facts (dl) */

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.facts > div {
  padding: 12px 0;
}

.facts > div + div {
  border-top: 1px solid var(--hairline);
}

.facts dt {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.facts dd {
  margin: 2px 0 0;
}

@media (min-width: 600px) {
  .facts > div {
    display: grid;
    grid-template-columns: 11em 1fr;
    gap: 16px;
    align-items: baseline;
  }

  .facts dd {
    margin: 0;
  }
}

/* A small table that becomes stacked cards on phones. */
.basis {
  width: 100%;
  margin: 4px 0 22px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.basis caption {
  text-align: left;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  padding-bottom: 8px;
}

.basis th,
.basis td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
}

.basis thead th {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.basis tbody tr {
  border-top: 1px solid var(--hairline);
}

.basis tbody th {
  font-weight: 650;
}

@media (max-width: 599px) {
  .basis thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .basis,
  .basis tbody,
  .basis tr,
  .basis th,
  .basis td {
    display: block;
  }

  .basis tbody tr {
    padding: 12px 0;
  }

  .basis th,
  .basis td {
    padding: 0;
  }

  .basis td {
    margin-top: 6px;
  }

  .basis td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
  }
}

/* ------------------------------------------------------ Support: steps */

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

.prose .steps li {
  counter-increment: step;
  position: relative;
  min-height: 32px;
  margin: 0 0 12px;
  padding: 3px 0 0 44px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-alt);
  color: var(--ink);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
}

.card .steps:last-child,
.card .steps li:last-child {
  margin-bottom: 0;
}

.card h3 {
  margin-top: 0;
}

/* ------------------------------------------ Support: the tiers (set-02) */

.tiers {
  list-style: none;
  margin: 16px 0 12px;
  padding: 6px 16px;
}

@media (min-width: 600px) {
  .tiers {
    padding: 6px 24px;
  }
}

.prose .tiers li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  margin: 0;
  padding: 10px 4px;
}

.prose .tiers li + li {
  border-top: 1px solid var(--hairline);
}

.tier__range {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.tier__eg {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 13px;
}

.tier__nap {
  flex: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--timer-track);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

/* Answers to the wake-up question, as the board orders them. */
.answers {
  list-style: none;
  margin: 16px 0 20px;
  padding: 4px 20px;
}

@media (min-width: 600px) {
  .answers {
    padding: 6px 28px;
  }
}

.prose .answers li {
  margin: 0;
  padding: 14px 0;
}

.prose .answers li + li {
  border-top: 1px solid var(--hairline);
}

.answers b {
  display: block;
  margin-bottom: 2px;
  font-weight: 650;
}

/* ---------------------------------------------------------- Support: FAQ */

.faq {
  margin: 16px 0 24px;
  padding: 0;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-card);
}

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

.faq summary:hover {
  color: var(--accent-deep);
}

.faq .answer {
  padding: 0 20px 18px;
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .faq summary {
    padding: 16px 28px;
  }

  .faq .answer {
    padding: 0 28px 20px;
  }
}

/* The Pro tag, as the home page draws it (site.css .pro-tag). */
.pro {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--page-chip);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  vertical-align: 0.15em;
}

h2 .pro {
  vertical-align: 0.3em;
}

/* Contact callout. */
.contact {
  text-align: left;
}

.contact .mail {
  display: inline-block;
  margin: 2px 0 8px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
  word-break: break-word;
}

/* --------------------------------------------------------------- Footer
   Mirrors the home page's footer (site.css .site-footer), plus a Home link. */

.foot {
  padding: 48px 0 40px;
  background: var(--base);
  border-top: 1px solid var(--ink-line);
  color: var(--ink-muted);
}

/* The type size lives here, not on .foot, so the .frame around it measures
   68ch at the body size and lines up with the text column above. */
.foot .span-all {
  font-size: 14px;
  line-height: 1.55;
}

.foot p {
  margin: 0;
}

.foot__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 28px;
}

/* The lockup at 24px. The 44px link leaves 10px under it, so 10px more
   keeps the tagline a full clear space (19px) away. */
.foot__brand .wordmark img {
  height: 24px;
}

.foot__brand p {
  margin-top: 10px;
}

.foot__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.foot__nav a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot__nav a[aria-current="page"] {
  color: var(--accent-deep);
}

.foot__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
}

.foot .foot__tm {
  margin-top: 16px;
  max-width: 72em;
  font-size: 12px;
  color: var(--ink-soft);
}

@media (min-width: 1024px) {
  .foot__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .foot__bottom {
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 32px;
  }
}

/* ---------------------------------------------------------- Accessibility */

@media (prefers-reduced-motion: reduce) {
  .chev {
    transition: none;
  }
}

/* ------------------------------------------------------------------ Print */

@media print {
  body {
    background: none;
    font-size: 11pt;
  }

  .masthead__ground,
  .bar__nav,
  .toc-m,
  .toc-d,
  .skip,
  .foot__nav,
  .foot__tm {
    display: none;
  }

  .card,
  .faq,
  .toc-m {
    box-shadow: none;
    border: 1px solid var(--hairline);
  }

  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    color: var(--ink-muted);
    font-size: 0.9em;
  }

  .prose h2,
  .prose h3 {
    break-after: avoid;
  }

  .foot {
    background: none;
    padding: 24px 0 0;
  }
}
