/* EXPATS PH SEO pages (server-rendered landings, guides) and the `.seo-block` injected into
   `#root` on application routes. Mobile first, max-width 680px, 16px gutters. Tokens mirror
   src/tokens.css; every selector is prefixed `.seo-` so React screens are never affected. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.seo-body {
  --ep-blue: #0b63f6;
  --ep-blue-strong: #0755df;
  --ep-blue-soft: #eef4ff;
  --ep-ink: #111827;
  --ep-muted: #5b6880;
  --ep-line: #e3e7ee;
  --ep-canvas: #f7f9fc;
  --ep-cream: #fdfbf7;
  --r-control: 12px;
  --r-card: 16px;
  --r-pill: 999px;
  margin: 0;
  background: var(--ep-cream);
  color: var(--ep-ink);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
.seo-body a {
  color: var(--ep-blue-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.seo-body a:hover {
  color: var(--ep-blue);
}
.seo-body :focus-visible {
  outline: 2px solid var(--ep-blue);
  outline-offset: 2px;
}

/* Header */
.seo-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ep-line);
}
.seo-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ep-blue);
  text-decoration: none;
}
.seo-header__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.seo-header__app {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--ep-blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.seo-header__app:hover {
  background: var(--ep-blue-strong);
  color: #fff;
}
.seo-header__lang {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Breadcrumb */
.seo-breadcrumb {
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 16px 0;
  font-size: 13px;
  color: var(--ep-muted);
}
.seo-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seo-breadcrumb li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--ep-muted);
}

/* Article */
.seo-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}
.seo-page h1 {
  margin: 12px 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.seo-page h2 {
  margin: 28px 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}
.seo-page p {
  margin: 0 0 12px;
}
.seo-intro p:first-child {
  font-size: 17px;
  color: #1f2937;
}
.seo-page ul,
.seo-page ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.seo-page li {
  margin: 0 0 6px;
}
.seo-section ol {
  counter-reset: seo-step;
  list-style: none;
  padding-left: 0;
}
.seo-section ol li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 10px;
}
.seo-section ol li::before {
  counter-increment: seo-step;
  content: counter(seo-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ep-blue-soft);
  color: var(--ep-blue-strong);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.seo-price-note {
  margin: 20px 0;
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--ep-blue-soft);
  border: 1px solid #d6e3ff;
  font-size: 15px;
}

/* FAQ */
.seo-faq__item {
  margin: 0 0 8px;
  border: 1px solid var(--ep-line);
  border-radius: var(--r-card);
  background: #fff;
}
.seo-faq__item summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--r-card);
}
.seo-faq__item summary::-webkit-details-marker {
  display: none;
}
.seo-faq__item summary::after {
  content: '+';
  flex: none;
  color: var(--ep-blue);
  font-weight: 700;
}
.seo-faq__item[open] summary::after {
  content: '−';
}
.seo-faq__answer {
  padding: 0 14px 4px;
  color: #1f2937;
}

/* CTA */
.seo-cta-block {
  margin: 28px 0 8px;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--ep-canvas);
  border: 1px solid var(--ep-line);
}
.seo-cta-block h2 {
  margin: 0 0 10px;
}
.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.seo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--r-control);
  background: var(--ep-blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.seo-cta:hover {
  background: var(--ep-blue-strong);
  color: #fff;
}
.seo-cta--secondary {
  background: #fff;
  color: var(--ep-blue-strong);
  border: 1px solid var(--ep-blue);
}
.seo-cta--secondary:hover {
  background: var(--ep-blue-soft);
}
.seo-updated {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ep-muted);
}

/* Related + footer */
.seo-related {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--ep-line);
}
.seo-related h2 {
  margin: 0 0 8px;
  font-size: 17px;
}
.seo-related ul {
  margin: 0;
  padding-left: 20px;
}
.seo-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--ep-line);
  font-size: 14px;
  color: var(--ep-muted);
}
.seo-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

/* Server SEO block rendered inside #root on application routes (replaced by React on mount). */
.seo-block {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px;
  color: var(--ep-ink, #111827);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.55;
}
.seo-block h1 {
  margin: 8px 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.seo-block h2 {
  margin: 20px 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}
.seo-block p {
  margin: 0 0 12px;
}
.seo-block ul,
.seo-block ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.seo-block li {
  margin: 0 0 6px;
}
.seo-block a {
  color: var(--ep-blue-strong, #0755df);
}

@media (min-width: 720px) {
  .seo-page h1 {
    font-size: 34px;
  }
  .seo-page {
    padding-top: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .seo-faq__item summary {
    transition: background-color 120ms ease;
  }
  .seo-faq__item summary:hover {
    background: var(--ep-canvas);
  }
}
