/* Shared styles for CountryShape static info pages */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #cbd5e1;
  background: #0b1220;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.08), transparent),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

a {
  color: #22d3ee;
  text-decoration: none;
}

a:hover {
  color: #67e8f9;
  text-decoration: underline;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sticky standalone header — matches app mobile header (h-14, slate-900) */
.info-page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  height: 3.5rem;
  padding: 0 1rem;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  color: #f8fafc;
}

.info-back-btn {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  justify-self: start;
  padding: 0.5rem;
  margin-left: -0.5rem;
  border-radius: 0.5rem;
  color: #e2e8f0;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.info-back-btn:hover {
  background: #1e293b;
  color: #f8fafc;
  text-decoration: none;
}

.info-back-btn:active {
  transform: scale(0.95);
}

.info-back-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.info-back-label {
  display: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.info-brand-lockup {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  padding: 0 0.5rem;
  pointer-events: none;
  user-select: none;
}

.info-brand-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: #22d3ee;
}

.info-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.info-header-spacer {
  grid-column: 3;
  width: 2.75rem;
  justify-self: end;
}

@media (min-width: 768px) {
  .info-page-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    height: 3.75rem;
    padding: 0 1.5rem;
    max-width: 72rem;
    width: 100%;
    margin: 0 auto;
  }

  .info-back-btn {
    grid-column: 1;
    justify-self: start;
    margin-left: 0;
    padding: 0.5rem 0.75rem;
  }

  .info-back-label {
    display: inline;
  }

  .info-brand-lockup {
    grid-column: 2;
    justify-self: center;
  }

  .info-header-spacer {
    display: none;
  }
}

main {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: #94a3b8;
}

h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e2e8f0;
}

h2:first-of-type {
  margin-top: 0;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4rem;
}

li:last-child {
  margin-bottom: 0;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-q {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: #f1f5f9;
}

.faq-a {
  margin: 0;
}

.meta {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.site-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

@media (max-width: 480px) {
  main {
    padding: 1.5rem 1.125rem 2.5rem;
  }
}
