/*
 * The static pages (support, privacy, terms): plain HTML served straight by Hosting, styled to match the
 * React site (src/index.css): the same paper, ink and olive tokens, the serif wordmark and headings, the
 * same footer. Light only, like the rest of the site.
 */
:root {
  --paper: #fafaf7;
  --surface: #ffffff;
  --hairline: #e6e4de;
  --ink: #1c1c1e;
  --ink-muted: #68686c;
  --accent: #617052;
  --accent-hover: #4e5a42;
  --accent-bg: #f1f4ef;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::selection { background: var(--accent); color: #fff; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Header: the site's navbar, reduced to the wordmark and the two things people come here for. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 247, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--hairline);
}
.site-header .bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 640px) { .site-header .bar { padding: 0 24px; } }
.wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { font-size: 14px; color: var(--ink-muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav .get-app {
  color: #fff;
  background: var(--ink);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}
.site-header nav .get-app:hover { color: #fff; background: rgba(28, 28, 30, 0.85); }
@media (max-width: 559px) { .site-header nav .wide { display: none; } }

/* The document. */
main { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 56px 20px 96px; }
@media (min-width: 768px) { main { padding-top: 80px; } }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.updated { margin: 0 0 40px; font-size: 14px; color: var(--ink-muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}
@media (max-width: 559px) { .card { padding: 28px 22px; border-radius: 20px; } }

section { margin: 0 0 36px; }
section:last-child { margin-bottom: 0; }
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
  scroll-margin-top: 88px;
}
h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 8px; }
p { margin: 0 0 14px; text-wrap: pretty; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--ink-muted); }
strong { font-weight: 600; }

/* Links inside text are underlined: colour alone does not set them apart (WCAG 1.4.1). */
.card a, .note a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(97, 112, 82, 0.4);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.card a:hover, .note a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

.contact-section { border-top: 1px solid var(--hairline); padding-top: 24px; margin-top: 36px; }
.fine { font-size: 14px; color: var(--ink-muted); }

/* Footer: the site's footer (src/components/Footer.jsx). */
.site-footer { border-top: 1px solid var(--hairline); background: var(--surface); padding: 0 20px; }
.site-footer .cols {
  max-width: 72rem;
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  gap: 40px 24px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) { .site-footer .cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer .brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .site-footer .brand { grid-column: auto; } }
.site-footer .brand .wordmark { font-size: 1.5rem; }
.site-footer .brand p { margin: 12px 0 20px; font-size: 14px; color: var(--ink-muted); }
.site-footer .badge { display: inline-block; border-radius: 8px; }
.site-footer .badge img { display: block; height: 40px; width: auto; }
.site-footer .badge:hover { opacity: 0.85; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer li a { font-size: 14px; color: var(--ink); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); }
.site-footer .legal-line {
  max-width: 72rem;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.tight { margin-bottom: 4px; }

/* For keyboard users: jump past the header. Hidden until focused. */
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.skip:focus { top: 12px; }
