/* reevemoney.com: shared look for every page.
   Colours are the app's own (reeve-ios Sources/Theme.swift), light and dark.
   Type is the system's: SF Pro for text, SF Pro Rounded for titles (the app's
   titles use the rounded design), falling back to each platform's own UI font.
   Nothing is downloaded. */

:root {
  color-scheme: light dark;
  --ground:   #F2F7F8;
  --plate:    #FFFFFF;
  --plate2:   #E4EFF2;
  --ink:      #0B2530;
  --ink-soft: #3A5F6B;
  --ink-muted:#55747D;
  --rule:     #C9DDE2;
  --hairline: rgba(11, 37, 48, .08);
  --accent:   #077D8A;
  --on-accent:#FFFFFF;
  --gold:     #B07D0B;
  --bad:      #D23C4A;
  --shadow:   rgba(11, 37, 48, .10);
  --nav-bg:   rgba(242, 247, 248, .72);
  /* The app's page background (ThemeBackground): a cyan glow top-left and a
     gold bloom top-right over teal-white paper. */
  --field:
    radial-gradient(520px 520px at 12% -2%, rgba(10, 176, 192, .16), transparent 70%),
    radial-gradient(480px 480px at 92% 4%, rgba(224, 184, 96, .16), transparent 70%),
    linear-gradient(#E3EFF2, #F2F7F8 60%, #F0F5F7);

  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:   #011C24;
    --plate:    #042A35;
    --plate2:   #07394A;
    --ink:      #EAF7F9;
    --ink-soft: #B3D6DD;
    --ink-muted:#76A3AE;
    --rule:     #0E4C5E;
    --hairline: rgba(255, 255, 255, .07);
    --accent:   #2FE0E6;
    --on-accent:#011C24;
    --gold:     #FFE39B;
    --bad:      #FF7A85;
    --shadow:   rgba(0, 18, 26, .6);
    --nav-bg:   rgba(1, 28, 36, .72);
    --field:
      radial-gradient(520px 520px at 12% -2%, rgba(10, 176, 192, .38), transparent 70%),
      radial-gradient(480px 480px at 92% 4%, rgba(28, 110, 116, .34), transparent 70%),
      linear-gradient(#023644, #011C24 60%, #021A22);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;          /* Apple's body size; scales with the browser's text setting */
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern";
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--plate); color: var(--ink); padding: 10px 14px; border-radius: 12px;
}
.skip:focus { top: 12px; }

/* The bar: one line, translucent like a system navigation bar. */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.bar .in {
  max-width: 1024px; margin: 0 auto; padding: 0 22px;
  height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--rounded); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink); min-height: 44px;
}
.brand:hover { text-decoration: none; }
.brand picture { display: contents; }
.brand img { width: 28px; height: 28px; }  /* the icon carries its own rounded shape */
.brand span { color: var(--ink-muted); font-weight: 600; }
.bar nav { display: flex; align-items: center; gap: 4px; font-size: 14px; letter-spacing: -0.01em; }
.bar nav a {
  color: var(--ink-soft); padding: 0 10px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.bar nav a:hover { color: var(--ink); text-decoration: none; }
.bar nav a.pill {
  color: var(--on-accent); background: var(--accent);
  border-radius: 999px; min-height: 30px; padding: 0 14px; margin-left: 6px; font-weight: 600;
}
.bar nav a.pill:hover { filter: brightness(1.06); }
@media (max-width: 600px) {
  .bar nav a.hide-s { display: none; }
}

/* Footer, shared by every page. */
.foot {
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted);
  font-size: 13px; letter-spacing: -0.01em; line-height: 1.5;
}
.foot .in {
  max-width: 1024px; margin: 0 auto; padding: 22px 22px 40px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot nav a { color: var(--ink-soft); display: inline-flex; align-items: center; min-height: 44px; }

/* Long-form pages: privacy, terms, security. */
.doc { background: var(--field) no-repeat top / 100% 720px, var(--ground); }
.doc main { max-width: 720px; margin: 0 auto; padding: 72px 22px 88px; }
.doc h1 {
  font-family: var(--rounded); font-weight: 700;
  font-size: clamp(34px, 6vw, 48px); line-height: 1.08; letter-spacing: -0.015em;
  margin-bottom: 12px; text-wrap: balance;
}
.doc .updated { color: var(--ink-soft); font-size: 15px; margin-bottom: 44px; }
.doc h2 {
  font-family: var(--rounded); font-weight: 700;
  font-size: 23px; line-height: 1.2; letter-spacing: -0.01em;
  margin: 44px 0 12px; scroll-margin-top: 72px;
}
.doc p { color: var(--ink-soft); margin-bottom: 14px; max-width: 38em; }
.doc p b, .doc li b { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { color: var(--ink-soft); margin: 0 0 14px 22px; max-width: 37em; }
.doc li { margin-bottom: 8px; padding-left: 2px; }
.doc li::marker { color: var(--ink-muted); }
.doc main a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: .18em; }
.doc main a:hover { text-decoration-color: var(--accent); }
.doc code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }
