/* Guide, platform and country pages (generated by scripts/landing/build.js). Uses the tokens from styles.css. */

.pg-body .site-header { background: rgba(7, 8, 12, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.pg { padding-top: calc(96px + var(--app-banner-h)); }
.pg-wrap { max-width: 980px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.pg-content { padding-bottom: clamp(48px, 7vw, 88px); }

.pg-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8125rem; color: var(--muted-2); margin: 8px 0 28px; }
.pg-crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--muted-2); }
.pg-crumbs a { color: var(--muted); }
.pg-crumbs a:hover { color: var(--ink); }

.pg-hero { padding-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--border); margin-bottom: clamp(32px, 5vw, 56px); }
.pg-hero h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); color: var(--ink); max-width: 18ch; margin-bottom: 18px;
}
html:not([lang="en"]) .pg-hero h1 { max-width: 100%; letter-spacing: -0.02em; }
.pg-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-3); line-height: 1.6; max-width: 60ch; margin-bottom: 28px; }
.pg-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pg-trust { margin-top: 16px; font-size: 0.8125rem; color: var(--muted-2); font-weight: 500; }

.pg-answer {
  background: linear-gradient(135deg, rgba(107, 155, 255, 0.1), rgba(107, 155, 255, 0.03));
  border: 1px solid rgba(107, 155, 255, 0.25); border-left: 3px solid var(--blue);
  border-radius: var(--r-lg); padding: 18px 22px; margin-bottom: clamp(36px, 5vw, 56px);
}
.pg-answer p { color: var(--ink-2); font-size: 1rem; line-height: 1.65; }
.pg-answer strong { color: var(--ink); }

.pg-section { margin-bottom: clamp(40px, 6vw, 64px); }
.pg-section h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); margin-bottom: 16px; }
.pg-section p { color: var(--muted); line-height: 1.75; margin-bottom: 14px; max-width: 70ch; }
.pg-section p a, .pg-note a { color: var(--blue); }
.pg-section p a:hover, .pg-note a:hover { color: var(--blue-hover); }
.pg-h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }

.pg-steps { list-style: none; counter-reset: pgstep; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pg-steps li { counter-increment: pgstep; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; position: relative; }
.pg-steps li::before { content: counter(pgstep, decimal-leading-zero); display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 10px; }
.pg-steps h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.pg-steps p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin: 0; }

.pg-tips { list-style: none; display: grid; gap: 10px; max-width: 72ch; }
.pg-tips li { position: relative; padding-left: 30px; color: var(--ink-3); line-height: 1.65; }
.pg-tips li::before {
  content: ''; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(107, 155, 255, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B9BFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.pg-tips li strong { color: var(--ink); }
.pg-tips--warn li::before { background: rgba(255, 107, 107, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B6B' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='7' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12' y2='17'/%3E%3C/svg%3E") center / 11px no-repeat; }

.pg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pg-facts > div { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.pg-facts h3 { font-size: 0.98rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.pg-facts p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin: 0; }

.pg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-lg); }
.pg-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pg-section > .pg-table { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.pg-table th, .pg-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.pg-table tr:last-child th, .pg-table tr:last-child td { border-bottom: 0; }
.pg-table tbody th { color: var(--muted); font-weight: 500; width: 34%; background: rgba(255, 255, 255, 0.015); }
.pg-table td { color: var(--ink-2); }
.pg-table--cmp { min-width: 640px; }
.pg-table--cmp thead th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--bg); font-weight: 600; }
.pg-table--cmp thead th:nth-child(2), .pg-table--cmp td:nth-child(2) { background: rgba(107, 155, 255, 0.07); color: var(--ink); }
.pg-table--cmp tbody th { width: auto; }

.pg-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pg-links a {
  display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--bg); border: 1px solid var(--border); transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
}
.pg-links a:hover { border-color: rgba(107, 155, 255, 0.45); background: var(--bg-2); transform: translateY(-2px); }
.pg-links__title { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.pg-links__sub { font-size: 0.82rem; color: var(--muted-2); }
.pg-more { color: var(--blue); font-weight: 600; font-size: 0.92rem; }

.pg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-chips li { font-size: 0.85rem; padding: 6px 12px; border-radius: var(--r-full); border: 1px solid var(--border); color: var(--ink-3); background: var(--bg); }
html[dir="rtl"] .pg-crumbs li + li::before { margin-right: 0; margin-left: 6px; }
html[dir="rtl"] .pg-tips li { padding-left: 0; padding-right: 30px; }
html[dir="rtl"] .pg-tips li::before { left: auto; right: 0; }
html[dir="rtl"] .pg-answer { border-left-width: 1px; border-right: 3px solid var(--blue); }
html[dir="rtl"] .pg-table th, html[dir="rtl"] .pg-table td { text-align: right; }
html[lang="ar"] .pg-hero h1, html[lang="ar"] .pg-section h2, html[lang="ko"] .pg-hero h1 { letter-spacing: 0; }

.pg-faq { border-top: 1px solid var(--border); max-width: 780px; }
.pg-faq .faq-item:first-child { border-top: 0; }

.pg-note { font-size: 0.82rem; color: var(--muted-2); line-height: 1.6; padding-top: 20px; border-top: 1px solid var(--border); max-width: 72ch; }

.pg-cta { background: var(--bg); border-top: 1px solid var(--border); padding: clamp(48px, 7vw, 88px) 0; text-align: center; }
.pg-cta h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 12px; }
.pg-cta p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; line-height: 1.65; }
.pg-cta .pg-badges { justify-content: center; margin-bottom: 16px; }
.pg-cta .pg-cta__note { font-size: 0.8125rem; color: var(--muted-2); margin: 0 auto; }

/* Homepage additions */
.home-seo { padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 60px); background: var(--surface); border-top: 1px solid var(--border); }
.home-seo__inner { max-width: 1100px; margin: 0 auto; }
.home-seo h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); margin-bottom: 14px; }
.home-seo__lead { color: var(--muted); max-width: 62ch; line-height: 1.7; margin-bottom: 28px; }
.home-seo__block + .home-seo__block { margin-top: clamp(48px, 6vw, 72px); }
.home-seo .pg-links { margin-bottom: 18px; }
@media (min-width: 900px) { .home-seo .pg-links { grid-template-columns: repeat(4, 1fr); } }

/* Footer with four columns */
.footer-nav--wide { flex-wrap: wrap; row-gap: 28px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 720px) {
  .pg { padding-top: calc(80px + var(--app-banner-h)); }
  .pg-steps, .pg-facts { grid-template-columns: 1fr; }
  .pg-links { grid-template-columns: 1fr 1fr; }
  .pg-links a { padding: 14px; }
  .pg-table tbody th { width: 42%; }
  .footer-nav--wide { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
@media (max-width: 390px) { .pg-links { grid-template-columns: 1fr; } }
