/* iVent landing site. Plain CSS, no JavaScript.
   Colours follow ivent_frontend app_colors.dart: the bright brand teal is
   decorative only (header band behind the white logo); readable text and
   buttons use primaryStrong in light mode and primaryLight with dark text in
   dark mode, so every pair clears WCAG AA. */

:root {
  --brand: #01AEBE;          /* AppColors.primary, decorative */
  --accent: #00777F;         /* AppColors.primaryStrong: links, buttons */
  --on-accent: #FFFFFF;
  --orange: #F39709;         /* AppColors.secondary, fill only */
  --bg: #FFFFFF;
  --surface: #F5F5F5;        /* grey100 */
  --border: #E0E0E0;         /* grey300 */
  --text: #212121;           /* grey900 */
  --muted: #616161;          /* grey700, 6.2:1 on white */
  --radius: 16px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #33C1CE;       /* AppColors.primaryLight */
    --on-accent: #212121;
    --bg: #121212;
    --surface: #1E1E1E;
    --border: #333333;
    --text: #EEEEEE;
    --muted: #BDBDBD;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

/* Header band */
.site-header { background: var(--brand); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.site-header img { display: block; height: 36px; width: auto; }
.site-header nav a {
  color: #212121;            /* onPrimaryBrand: 5.98:1 on the brand teal */
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--accent); }
.hero p {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.15rem;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-soon {
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: default;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 24px 0 72px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.feature .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand);
  color: #212121;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature:nth-child(2) .icon { background: var(--orange); }
.feature h2 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; }
.feature p { margin: 0; color: var(--muted); }

/* Contact strip */
.contact {
  margin-bottom: 72px;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.contact h2 { margin: 0 0 8px; font-size: 1.4rem; }
.contact p { margin: 0; color: var(--muted); }

/* Legal documents */
.doc { max-width: 760px; padding: 48px 16px 72px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 4vw, 2.4rem); line-height: 1.2; }
.doc .lead { margin: 0 0 32px; color: var(--muted); }
.doc h2 { margin: 36px 0 12px; font-size: 1.3rem; line-height: 1.35; }
.doc h3 { margin: 24px 0 8px; font-size: 1.08rem; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 4px 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
