:root {
  --blue: #293277;
  --orange: #ea5b0c;
  --neutral: #f1f8ff;
  --inbetween: #e8eff7;
  --ink: #2b2b2b;
  --line: #dee6ef;
  --muted: #4b5563;
  --body: #374151;
  --emerald: #10b981;
  --footer: #1e2659;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(41, 50, 119, 0.12);
  --max: 72rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

html.i18n-pending body { visibility: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

button, a { font-family: inherit; }

a { color: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(222, 230, 239, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding-top: env(safe-area-inset-top, 0px);
}

.nav-inner,
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand,
.brand:hover {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  border-radius: 0.7rem;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
}

.brand span {
  display: none;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover { color: var(--blue); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav .btn,
.lang-toggle {
  white-space: nowrap;
  flex: none;
}

.lang { position: relative; }

.lang-toggle,
.btn {
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lang-toggle {
  gap: 0.4rem;
  border: 1px solid rgba(222, 230, 239, 0.95);
  background: var(--white);
  color: var(--blue);
  padding: 0.5rem 0.7rem;
  font-size: 0.875rem;
}

.lang-toggle:hover { background: var(--neutral); }

.lang-toggle svg { width: 1rem; height: 1rem; }

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  margin-top: 0.5rem;
  min-width: 10.5rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  padding-block: 0.25rem;
  box-shadow: 0 12px 30px rgba(41, 50, 119, 0.12);
}

.lang-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  padding: 0.65rem 1rem;
  text-align: start;
  font-size: 0.875rem;
  color: var(--body);
  cursor: pointer;
}

.lang-menu button:hover { background: var(--neutral); }

.lang-menu button.is-selected {
  background: var(--inbetween);
  color: var(--blue);
  font-weight: 600;
}

.btn {
  border: 1px solid transparent;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.2;
}

.btn-outline {
  border-color: var(--blue);
  background: var(--white);
  color: var(--blue);
}

.btn-outline:hover { background: var(--neutral); }

.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-orange:hover { background: #ea580c; }

.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(41, 50, 119, 0.18);
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.btn-blue:hover { background: #1e3a8a; }

.btn-ghost {
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-ghost:hover { background: var(--neutral); }

.btn-light {
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn-light:hover { background: rgba(255, 255, 255, 0.1); }

.btn:focus-visible,
.lang-toggle:focus-visible,
.brand:focus-visible,
.nav-links a:focus-visible,
.footer a:focus-visible,
.footer button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hero {
  background: linear-gradient(to bottom, var(--neutral), var(--white));
}

.hero-grid,
.feature-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-block: 4rem;
}

.hero-logo {
  width: 200px;
  height: auto;
  margin-bottom: 2rem;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; color: var(--blue); }

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.lead {
  max-width: 36rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone {
  width: min(100%, 280px);
  margin-inline: auto;
  padding: 0.75rem;
  border: 1px solid rgba(222, 230, 239, 0.8);
  border-radius: 2rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.phone-screen {
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--inbetween);
}

.phone-screen img { width: 100%; object-fit: cover; }

.section { padding-block: 4rem; }

.center { text-align: center; }

.center h2,
.feature-copy h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.center p,
.feature-copy > p,
.step p,
.partner p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-copy .eyebrow { color: var(--orange); }

.intro p { margin: 1rem auto 0; font-size: 1.125rem; max-width: 46rem; }

.band-blue { background: var(--neutral); }
.band-white { background: var(--white); }

.title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.4rem 0 1rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  flex: none;
}

.dot-orange { background: var(--orange); }
.dot-blue { background: var(--blue); }
.dot-emerald { background: var(--emerald); }

.checks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--body);
  line-height: 1.6;
}

.checks svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex: none;
  color: var(--emerald);
}

.steps {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
}

.bg-blue { background: var(--blue); }
.bg-orange { background: var(--orange); }
.bg-emerald { background: var(--emerald); }

.step h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

.partners {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.partner {
  display: block;
  text-decoration: none;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.8);
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(41, 50, 119, 0.05);
  text-align: center;
}

.partner:hover { background: var(--white); box-shadow: 0 8px 20px rgba(41, 50, 119, 0.08); }

.partner img {
  height: 5rem;
  width: auto;
  max-width: 9rem;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

.partner .rule {
  height: 1px;
  background: #e5e7eb;
  margin: 0.75rem 0;
}

.partner h3 {
  color: var(--ink);
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.partner p { margin: 0; font-size: 0.75rem; }

.join {
  background: var(--blue);
  color: var(--white);
}

.join h2 { color: var(--white); }

.join .lead {
  color: rgba(255, 255, 255, 0.85);
  margin-inline: auto;
}

.join .note {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 2rem;
}

.join .actions {
  align-items: center;
  justify-content: center;
}

.join .btn,
.hero .actions .btn {
  box-sizing: border-box;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  line-height: 1.2;
  border-width: 2px;
}

.join .btn { width: min(100%, 16rem); }

.join .btn-orange:focus-visible,
.join .btn-light:focus-visible {
  outline-color: var(--white);
}

.footer {
  background: var(--footer);
  color: var(--white);
  padding-block: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
}

.footer p,
.footer li,
.footer button {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer h4 {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.footer button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: start;
}

.footer a.login-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--orange);
  font-weight: 500;
}

.footer a.login-link:hover { color: #fdba74; }

.legal-title {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.footer .copy {
  width: min(100% - 2.5rem, var(--max));
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .nav-inner, .wrap { width: min(100% - 4rem, var(--max)); }
  .copy { width: min(100% - 4rem, var(--max)); }
  .brand span { display: inline; }
  .nav-actions { gap: 0.75rem; }
  .nav .btn { padding-inline: 1rem; }
  .actions, .join .actions { flex-direction: row; flex-wrap: wrap; }
  .join .btn { width: auto; }
  .phone { width: min(100%, 20rem); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .section, .hero-grid, .feature-grid { padding-block: 5rem; }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

@media (min-width: 1024px) {
  .hero-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid.flip .phone-col { order: 2; }
  .partners, .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: auto; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { padding-block: 6rem; }
}
