/*
  BintaCura — stylesheet for the static, crawlable public pages.

  These pages are plain HTML served as files by nginx, alongside the Flutter
  SPA. They exist because the application renders into a WebGL canvas: its
  visible text never reaches the DOM, so a crawler that renders the app still
  extracts no content (measured: 30 characters of DOM text on the homepage,
  all of it Flutter's hidden "typography measurement" node).

  Kept dependency-free and small on purpose: no webfont fetch, no framework,
  no build step. Anything that needs the application is reached through a
  link into the SPA (a hash URL), never reimplemented here.
*/

:root {
  /* #007AFF is the exact colour of the shipped BintaCura mark (sampled from
     assets/images/logo_v2.png and web/icons/Icon-512.png — both are 100%
     #007AFF). The green this file used to carry was a leftover from before
     the logo change. */
  --brand: #007AFF;
  --brand-dark: #0062CC;
  --ink: #12211A;
  --ink-soft: #4A5A52;
  --line: #DCE5DF;
  --bg-soft: #F4F8F5;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Manrope, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus { color: var(--brand-dark); border-bottom-color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--brand); }

/* ── Content ────────────────────────────────────────────────────────────── */
main { padding: 36px 0 8px; }

h1 {
  font-size: clamp(27px, 4.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
h2 {
  font-size: clamp(20px, 2.8vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}
h3 { font-size: 18px; margin: 26px 0 6px; }
p { margin: 0 0 15px; }
.lede { font-size: 19px; color: var(--ink-soft); margin-bottom: 26px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
a { color: var(--brand-dark); }

.note {
  background: var(--bg-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 16px;
  color: var(--ink-soft);
}
.note strong { color: var(--ink); }

/* ── Call to action ─────────────────────────────────────────────────────── */
.cta {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 36px 0 8px;
}
.cta h2 { margin-top: 0; }
.cta-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
}
.btn:hover, .btn:focus { background: var(--brand-dark); }
.btn.secondary { background: #fff; color: var(--brand-dark); border: 1px solid var(--brand); }
.btn.secondary:hover, .btn.secondary:focus { background: var(--bg-soft); }

/* ── Cross links between the static pages ───────────────────────────────── */
.related { margin: 40px 0 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 17px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 6px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 26px 0 40px;
  font-size: 15px;
  color: var(--ink-soft);
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--brand-dark); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 0; list-style: none; }
