/* Reset + basics ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1c1c1c;
  background: #f5f7fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: #1976D2; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

/* Same font source as the Flutter app — served locally to keep the
   page cookie-free. If Roboto isn't bundled yet, the system fallback
   above is close enough visually. */
/* @font-face declarations can be added here if we ship the font. */

/* Layout ---------------------------------------------------------- */
main { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-title {
  font-size: 28px; font-weight: 700; margin: 0 0 12px;
  letter-spacing: -0.01em; color: #0d47a1;
}
.section-lead {
  font-size: 17px; color: #4a5568; max-width: 640px; margin: 0 auto 32px;
  text-align: center;
}
@media (min-width: 720px) {
  .section-title { font-size: 32px; text-align: center; }
}

/* Topbar --------------------------------------------------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #1976D2 0%, #64B5F6 100%);
  box-shadow: 0 2px 6px rgba(25,118,210,0.35);
}
.brand-name { font-weight: 700; font-size: 20px; color: #0d47a1; letter-spacing: -0.02em; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 1px solid #cbd5e0; color: #4a5568;
  border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.lang-toggle:hover { background: #edf2f7; border-color: #a0aec0; }
.lang-toggle-current { color: #1976D2; }
.lang-toggle-alt { color: #a0aec0; }
.lang-toggle[data-active-lang="en"] .lang-toggle-current { color: #a0aec0; }
.lang-toggle[data-active-lang="en"] .lang-toggle-alt { color: #1976D2; }

/* Hero ----------------------------------------------------------- */
.hero { padding: 80px 20px 40px; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: 34px; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 0 20px; color: #0d47a1;
}
.hero-lead { font-size: 19px; color: #2d3748; margin: 0 0 12px; }
.hero-sub  { font-size: 16px; color: #4a5568; margin: 0 0 32px; }
@media (min-width: 720px) {
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 20px; }
}

/* CTA button ----------------------------------------------------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border-radius: 24px; border: none;
  font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease, transform 60ms ease;
}
.cta-primary {
  background: #1976D2; color: #ffffff;
  box-shadow: 0 3px 8px rgba(25,118,210,0.28);
}
.cta-primary:hover, .cta-primary:focus-visible {
  background: #1565C0; text-decoration: none;
  box-shadow: 0 5px 14px rgba(25,118,210,0.36);
}
.cta-primary:active { transform: translateY(1px); }
.cta-primary:disabled { background: #90caf9; box-shadow: none; cursor: not-allowed; }

/* Video ---------------------------------------------------------- */
.video-wrap {
  max-width: 800px; margin: 0 auto;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(15,23,42,0.10);
  background: #000;
}
.video-wrap iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-placeholder {
  aspect-ratio: 16 / 9; width: 100%;
  background: linear-gradient(135deg, #0d47a1 0%, #1976D2 100%);
  color: #ffffff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
  transition: filter 120ms ease;
}
.video-placeholder:hover { filter: brightness(1.08); }
.video-play-icon {
  font-size: 42px; margin-bottom: 8px;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.35);
}
.video-placeholder-text { font-size: 16px; font-weight: 600; letter-spacing: 0.02em; }

/* Steps ---------------------------------------------------------- */
.steps {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  max-width: 900px; margin: 0 auto;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.step {
  background: #ffffff; border-radius: 16px; padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
  border: 1px solid #edf2f7;
}
.step h3 { margin: 12px 0 8px; font-size: 18px; color: #0d47a1; }
.step p  { margin: 0; color: #4a5568; font-size: 15px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e3f2fd; color: #1565C0; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}

/* Who ------------------------------------------------------------ */
.who-section .section-lead { text-align: center; }

/* Signup --------------------------------------------------------- */
.signup-section { padding: 32px 20px 80px; }
.signup-card {
  max-width: 520px; margin: 0 auto;
  background: #ffffff; border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 6px 24px rgba(15,23,42,0.08);
  border: 1px solid #edf2f7;
}
.signup-card .section-title { text-align: center; }
.signup-card .section-lead  { text-align: center; margin-bottom: 24px; }

#signupForm { display: flex; flex-direction: column; gap: 16px; }
input[type="email"] {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid #cbd5e0; border-radius: 12px;
  font-family: inherit; font-size: 16px; color: #1a202c; background: #ffffff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input[type="email"]:focus {
  outline: none;
  border-color: #1976D2;
  box-shadow: 0 0 0 3px rgba(25,118,210,0.15);
}
input[type="email"].invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.15);
}

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #4a5568;
}
.consent input[type="checkbox"] {
  margin: 3px 0 0; width: 18px; height: 18px; accent-color: #1976D2; flex-shrink: 0;
}

.submit-btn { width: 100%; margin-top: 4px; }

.form-msg {
  margin: 8px 0 0; text-align: center; font-size: 14px; min-height: 20px;
}
.form-msg.success { color: #2f855a; }
.form-msg.error   { color: #c53030; }
.form-msg.info    { color: #4a5568; }

/* Honeypot: keep out of viewport + screen readers -------------- */
.honeypot {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* Accessibility helpers ----------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Footer --------------------------------------------------------- */
.footer {
  padding: 40px 20px 60px; text-align: center;
  color: #718096; font-size: 14px;
  border-top: 1px solid #edf2f7; margin-top: 40px;
}
.footer p { margin: 4px 0; }
.footer .dot { margin: 0 8px; color: #a0aec0; }
.footer a { color: #4a5568; }
.copyright { font-size: 13px; color: #a0aec0; }
