/* IntakeBird website. Colors and type match the IntakeBird app. */
:root {
  --brand: #462069;
  --brand-hover: #381a54;
  --brand-text: #2f1547;
  --brand-light: #efe8f5;
  --brand-lighter: #f6f2fa;
  --text: #1f1c24;
  --muted: #625e68;
  --border: #e4e0e8;
  --page: #f7f7f9;
  --surface: #ffffff;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
}
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }
img, svg { max-width: 100%; }

.skip { position: absolute; left: -999px; top: 8px; padding: 10px 16px; background: var(--surface); border-radius: 8px; }
.skip:focus { left: 16px; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; padding: 6px 0; }
.brand img { display: block; height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav a { color: var(--brand-text); font-weight: 600; text-decoration: none; padding: 8px 0; }
.nav { align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav a.nav__signin { padding: 8px 16px; border: 1.5px solid var(--brand); border-radius: 10px; color: var(--brand); }
.nav a.nav__signin:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* Home */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--brand-lighter), var(--page)); }
.hero h1 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 18ch; }
.hero p { margin: 0 0 28px; font-size: 1.25rem; color: var(--muted); max-width: 60ch; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--brand-hover); color: #fff; }

.section { padding: 56px 0; }
.section h2 { margin: 0 0 12px; font-size: 1.75rem; line-height: 1.25; }
.section > .wrap > p { color: var(--muted); max-width: 65ch; margin: 0 0 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.card h3 { margin: 0 0 8px; font-size: 1.1875rem; }
.card p { margin: 0; color: var(--muted); }
.trust { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }

/* Policy pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 16px 64px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(1.875rem, 4vw, 2.5rem); line-height: 1.2; }
.doc .updated { margin: 0 0 32px; color: var(--muted); }
.doc h2 { margin: 36px 0 10px; font-size: 1.375rem; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.note { padding: 16px 18px; border-radius: var(--radius); background: var(--brand-light); }

/* Footer */
.foot { padding: 32px 0 40px; color: var(--muted); font-size: 1rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 40px 0; }
}
