/* Ivera — public site. Palette mirrors the app
   (lib/core/theme/app_colors.dart).
   Accessibility: WCAG AA contrast in both schemes, visible
   focus indicators, semantic landmarks, no motion. */
:root {
  /* The app's palette (ivera-aba lib/core/theme/app_colors.dart, D-027):
     warm stone neutrals, the vine-blue accent. */
  --primary: #264d7e;        /* AppColors.primary */
  --bg: #f3f3f0;             /* AppColors.background */
  --text: #1e1e1b;           /* AppColors.textPrimary */
  --text-secondary: #56564f; /* AppColors.textSecondary */
  --border: #d4d4ce;         /* AppColors.border */
  --accent-text: #264d7e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a1f;             /* AppColors.darkBackground */
    --text: #e4e7ec;           /* AppColors.darkTextPrimary */
    --text-secondary: #a2a9b4; /* AppColors.darkTextSecondary */
    --border: #30363d;         /* AppColors.darkBorder */
    --accent-text: #4a96e3;    /* AppColors.darkPrimary */
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* The lockup (brand/export/lockup): the emblem in page headers, the
   hero on the landing page. Light/dark via <picture>. */
.wordmark { display: inline-block; line-height: 0; text-decoration: none; }
.wordmark img { display: block; width: auto; height: 40px; }
.wordmark:hover { text-decoration: none; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; width: 100%; }

header.site { padding: 28px 0; }

/* Landing: the hero fills the first screen; sections follow. */
.wrap.wide { max-width: 1040px; }
section.hero {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: 56px 0 72px;
  text-align: center;
}
/* The lockup is the showpiece (Andy, 2026-10-02): as large as the
   screen allows, never wider than the column. */
section.hero .wordmark img {
  height: clamp(120px, 30vw, 300px);
  max-width: 100%;
  margin: 0 auto;
}
section.hero h1 {
  margin-top: 40px;
  font-size: clamp(28px, 4.8vw, 46px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.015em;
}
section.hero p.mission {
  margin: 22px auto 0;
  max-width: 600px;
  font-size: 19px;
  color: var(--text-secondary);
}
section.hero .signin { margin-top: 40px; font-size: 17px; }

section.band {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}
section.band .eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 6px;
}
/* A product's own lockup stands in for its heading. */
section.band h2.lockup { line-height: 0; margin-bottom: 22px; }
section.band h2.lockup img { height: clamp(56px, 9vw, 80px); width: auto; max-width: 100%; }
section.band h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 14px;
}
section.band p { font-size: 17px; color: var(--text-secondary); }
section.band p.lead { font-size: 19px; margin-bottom: 22px; }
ul.features { list-style: none; display: grid; gap: 12px; }
ul.features li {
  font-size: 17px;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}
ul.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-text);
}
ul.features strong { color: var(--text); font-weight: 650; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 26px 0 34px;
  font-size: 14px;
  color: var(--text-secondary);
}
footer.site .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  justify-content: space-between;
}
footer.site a { color: var(--text-secondary); }

/* Legal / support pages */
main.doc { flex: 1; padding: 8px 0 72px; }
main.doc h1 { font-size: 30px; letter-spacing: -0.01em; margin-bottom: 6px; }
main.doc p.meta { color: var(--text-secondary); font-size: 14px; margin-bottom: 30px; }
main.doc h2 { font-size: 19px; margin: 30px 0 8px; }
main.doc p, main.doc li { font-size: 16px; }
main.doc ul { padding-left: 22px; margin: 10px 0; }
