/* Shared style for the static pages in public/. No external fonts or scripts. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #6c6c70;
  --line: #e5e5ea;
  --card: #f2f2f7;
  --accent: #ff3b30;
  --link: #d70015;
}

/* The website's appearance choice in Account sets data-theme on <html> (see the script in each page's head);
   without one the pages follow the system. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --text: #ffffff;
    --muted: #aeaeb2;
    --line: #38383a;
    --card: #1c1c1e;
    --accent: #ff453a;
    --link: #ff6961;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --text: #ffffff;
  --muted: #aeaeb2;
  --line: #38383a;
  --card: #1c1c1e;
  --accent: #ff453a;
  --link: #ff6961;
}

:root[data-theme="light"] {
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.bar-inner, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.lang { display: flex; gap: 6px; }

.lang a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

main { padding-top: 8px; padding-bottom: 32px; }

article + article { margin-top: 48px; padding-top: 32px; border-top: 4px solid var(--accent); }

h1 { font-size: 2rem; line-height: 1.15; margin: 24px 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }

.updated { color: var(--muted); margin: 0 0 16px; font-size: 15px; }

p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }

a { color: var(--link); text-underline-offset: 2px; }

.summary {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 16px 4px;
  margin: 16px 0 24px;
}

.summary h2 { margin-top: 0; }

footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 15px;
}

footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
footer nav a { color: var(--text); }

/* The active language: a page of its own (how-it-works, faq) or the section in view (legal pages). */
.lang a[aria-current] { background: var(--text); color: var(--bg); }

.lead { font-size: 19px; }

.cta {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  text-decoration: none;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 16px; }
th, td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-weight: 600; }
td.price { white-space: nowrap; }
