/* Malartu LTS — static site styles.
   Design direction (JAL-53): deep ink navy base, single postal-signal teal
   accent, WCAG 2.2 AA contrast, generous spacing, large numerals, trust
   markers. No dark patterns, no gimmicks. */

:root {
  --ink: #0b1e36;
  --ink-soft: #13294b;
  --accent: #0a7d6b;
  --accent-on-dark: #7ee0cf;
  --surface: #ffffff;
  --surface-alt: #f4f7fa;
  --text: #1c2b3a;
  --muted: #51606f;
  --border: #dfe6ee;
  --ring: #0a7d6b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 30, 54, 0.12), 0 4px 14px rgba(11, 30, 54, 0.08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; z-index: 100; }

.masthead {
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.25rem;
}
.masthead-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; }
.brand-mark { width: 1.6rem; height: 1.6rem; border-radius: 6px; background: var(--accent-on-dark); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.brand small { display: block; font-weight: 400; font-size: 0.7rem; opacity: 0.75; letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: #dbe6f2; text-decoration: none; font-weight: 500; }
.nav a:hover { color: #fff; }
.trust-chip { margin-left: auto; color: var(--accent-on-dark); font-weight: 700; letter-spacing: 0.02em; }

main { max-width: 1080px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

.hero { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%); color: #fff; border-radius: 16px; padding: 2.75rem 2rem; margin-bottom: 2.5rem; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; margin: 0 0 1rem; max-width: 22ch; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 56ch; color: #dbe6f2; margin: 0 0 1.5rem; }
.hero .accent-text { color: var(--accent-on-dark); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.step { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.step .num { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.card { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin: 1.5rem 0; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.8rem 1.25rem;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: #085f51; color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border: 2px solid var(--border); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }

.trust-bar { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: #eef7f5; color: var(--ink); font-weight: 600; }
.trust-bar em { color: var(--accent); font-style: normal; }

.country-list { list-style: none; padding: 0; margin: 0; }
.country-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.badge-live { color: var(--accent); font-weight: 700; }
.badge-pending { color: var(--muted); }

.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; padding: 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.qr-wrap img { width: 168px; height: 168px; background: #fff; }

table.spec { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
table.spec th, table.spec td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.spec th { background: var(--surface-alt); }

code { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 4px; padding: 0.1rem 0.35rem; font-size: 0.9em; }
pre { background: var(--ink); color: #dbe6f2; border-radius: var(--radius); padding: 1.25rem; overflow-x: auto; }
pre code { background: transparent; border: none; color: inherit; }

/* Token-consent modal (no PII) */
.consent {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 30, 54, 0.62);
  padding: 1.25rem;
  z-index: 50;
}
.consent[aria-hidden="true"] { display: none; }
.consent:not([aria-hidden]) { display: flex; }
.consent-card { background: #fff; border-radius: 14px; max-width: 520px; padding: 1.75rem; box-shadow: var(--shadow); }
.consent-card h2 { margin-top: 0; }
.consent-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }

.footer { background: var(--ink); color: #c7d4e2; padding: 2rem 1.25rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.footer a { color: var(--accent-on-dark); }
.footer .note { font-size: 0.85rem; color: #96a5b7; }

details.faq { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0.75rem 0; }
details.faq summary { font-weight: 600; cursor: pointer; }

.section-title { margin-top: 2.5rem; }
small.meta { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}