/* Base stylesheet — element defaults, shared layout, and site chrome.
   Page HTML should be clean semantic markup with these classes; avoid
   inline styles. All values come from tokens.css. */

/* ---------- Reset / document ---------- */
html, body { margin: 0; padding: 0; background: var(--color-bg); }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height); /* room for the fixed header */
}
* { box-sizing: border-box; }

a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-link-hover); text-decoration: underline; }

img { max-width: 100%; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Document column (legal + content pages) ---------- */
main.doc {
  flex: 1;
  width: 100%;
  max-width: var(--maxw-doc);
  margin: 0 auto;
  padding: 56px 24px 80px;
  /* Some pages print a bare URL as the link text (e.g. the German earnings
     ToS). Without this those tokens are unbreakable and scroll the page
     sideways on narrow viewports. */
  overflow-wrap: break-word;
}
main.wide {
  flex: 1;
  width: 100%;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 96px 24px 120px;
}

.doc h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.doc h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 16px;
}
.doc h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin: 28px 0 10px;
}
.doc p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0 0 20px;
}
.doc p.meta {
  font-size: var(--fs-meta);
  color: var(--color-meta);
  margin: 0 0 36px;
}
.doc p.lead { font-weight: 700; }
.doc ul {
  margin: 0 0 20px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doc li { font-size: var(--fs-body); line-height: var(--lh-body); }

/* ---------- Site header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
  transition: transform 0.25s ease;
  will-change: transform;
}
.site-header-inner {
  max-width: var(--maxw-chrome);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-text); }
.brand-logo { height: 28px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: var(--fs-meta); color: var(--color-text-secondary); }
.nav-link:hover { color: var(--color-link-hover); }
.btn-pill {
  font-size: var(--fs-meta);
  font-weight: 600;
  background: var(--color-brand);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
}
.btn-pill:hover { background: var(--color-button-hover); color: #fff; text-decoration: none; }

/* ---------- Site footer ---------- */
.site-footer { background: var(--color-bg); border-top: 1px solid var(--border-hairline); }
.footer-inner {
  max-width: var(--maxw-chrome);
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { height: 34px; width: auto; display: block; }
.footer-col { display: flex; flex-direction: column; gap: 18px; }
.footer-heading { font-size: var(--fs-body); font-weight: 700; color: var(--color-text); }
.footer-link { font-size: var(--fs-meta); color: var(--color-text-secondary); }
.footer-link:hover { color: var(--color-link-hover); }
.footer-legal p {
  max-width: var(--maxw-chrome);
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  font-size: var(--fs-meta);
  color: var(--color-text-secondary);
}

/* ---------- Get Poe (app cards) ---------- */
.page-title {
  font-size: 64px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0; text-align: center;
}
.apps-hero { display: flex; flex-direction: column; align-items: center; gap: 64px; }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  width: 100%;
}
.app-card {
  background: var(--color-surface-muted);
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  padding: 32px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.app-name { font-size: 28px; font-weight: 700; }
.app-icon { width: 104px; height: 120px; display: block; }
.btn-download {
  width: 100%;
  text-align: center;
  background: var(--color-brand);
  color: #fff;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 18px; font-weight: 600;
}
.btn-download:hover { background: var(--color-button-hover); color: #fff; text-decoration: none; }

/* ---------- Privacy center (shield cards / images) ---------- */
.info-img { width: 100%; object-fit: contain; display: block; margin: 0 0 28px; }
.info-img-medium { height: 260px; }
.info-img-tall { height: 380px; }
.shield-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}
.shield-card {
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.shield-icon-row { display: flex; justify-content: center; }
.shield-icon { width: 21px; height: 25px; display: block; }
.shield-card .shield-title { font-size: var(--fs-h3); font-weight: 700; }
.shield-card p { font-size: 15px; line-height: 1.6; color: var(--color-text-muted); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .page-title { font-size: 44px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
