/* NewsMapp website — shared styles.
   Brand colours match the app. No external resources (no Google Fonts CDN,
   no trackers, no cookies) -> clean GDPR footprint. */

:root {
  --blue: #2a415f;
  --dark-blue: #253445;
  --bg: #f6f9fa;
  --gray: #808891;
  --text: #1c2530;
  --white: #ffffff;
  --border: #e2e8ec;
  /* One shared container for every page so header, content and footer line up
     identically everywhere — nothing shifts when navigating between pages. */
  --maxw: 820px;
  --pad: clamp(16px, 4vw, 28px);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Always reserve space for the scrollbar so short and long pages have the
     same content width — prevents horizontal "jumping" between pages. */
  scrollbar-gutter: stable;
  /* Brand blue behind everything, so over-scroll (rubber-band) and the
     scrollbar gutter show blue at the edges instead of white. */
  background: var(--dark-blue);
}

body {
  margin: 0;
  min-height: 100vh;
  /* Sticky footer: main grows to fill, so the footer always sits at the
     bottom and no light gap shows below it on short pages. */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Roboto Mono", "DejaVu Sans Mono", monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Shared fluid container — same width for header bar, main and footer bar. */
.site-header .bar,
main,
.site-footer .bar {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Header (sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--dark-blue);
  box-shadow: 0 2px 8px rgba(28, 37, 48, 0.18);
}
.site-header .bar {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--white);
  font-size: 21px;
}
.brand img {
  height: 34px;
  width: auto;
  display: block; /* transparent logo on the blue header */
}
.nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--white); font-size: 16px; }
.lang { font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.lang a { color: rgba(255, 255, 255, 0.7); }
.lang .active { color: var(--white); font-weight: 700; }

/* ---------- Hero (full-bleed) ---------- */
.hero {
  /* Vertical gradient so the top edge matches the header exactly (no seam),
     fading down into the brand grey. */
  background: linear-gradient(180deg, var(--dark-blue), var(--gray));
  color: var(--white);
  text-align: center;
  /* Centre content and use a fixed min-height so the banner is the same size
     on the landing page and the 404 page, regardless of text length. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 40px 20px;
}
.hero img {
  width: 104px;
  height: 104px;
  border-radius: 24px; /* squircle app-icon tile */
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  margin-bottom: 22px;
}
.hero h1 { font-size: 32px; margin: 0 0 12px; letter-spacing: -0.5px; }
.hero p { font-size: 18px; max-width: 560px; margin: 0 auto 28px; color: #d6e0ea; }
.badge {
  display: inline-block;
  background: var(--white);
  color: var(--dark-blue);
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
}
.badge.disabled { opacity: 0.85; }

/* ---------- Content ---------- */
main {
  flex: 1 0 auto; /* fill remaining height so the footer stays at the bottom */
  padding-top: 40px;
  padding-bottom: 64px;
}
main h1 { font-size: 28px; color: var(--dark-blue); margin: 0 0 8px; letter-spacing: -0.5px; }
main h2 { font-size: 19px; color: var(--dark-blue); margin: 34px 0 10px; }
main h3 { font-size: 16px; color: var(--dark-blue); margin: 22px 0 6px; }
.muted { color: var(--gray); font-size: 14px; }
.lead { font-size: 17px; }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.15s ease;
}
.card h3 { margin-top: 0; }
.card:hover { border-color: var(--blue); }

.note {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--gray);
}

table.kv { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
table.kv th, table.kv td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.kv th { color: var(--dark-blue); width: 38%; }

/* Neutral by design so filled-in real data looks clean. */
.fill { }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--dark-blue);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}
.site-footer a { color: var(--white); }
.site-footer .bar {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer .copy { margin-left: auto; }

/* ---------- Responsive tuning ---------- */
@media (min-width: 560px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 760px) {
  .hero { min-height: 520px; padding: 56px 24px; }
  .hero img { width: 116px; height: 116px; border-radius: 26px; margin-bottom: 24px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 20px; max-width: 600px; }
  main { padding-top: 52px; }
}

@media (max-width: 520px) {
  .hero { min-height: 320px; padding: 40px 18px; }
  .hero h1 { font-size: 26px; }
  .hero img { width: 88px; height: 88px; border-radius: 20px; }
  .site-footer .copy { margin-left: 0; width: 100%; }
}
