/*
  nyumbalinktz.com — shared design system: tokens, base type, header,
  footer, buttons and the legal-document layout. index.html adds the
  landing-page sections on top of this; lipa.html restyles its own form
  classes with these tokens.
*/
:root {
  --navy-950: #08131F;
  --navy-900: #0D1B2A;
  --navy-800: #142739;
  --navy-700: #1D3550;
  --navy-600: #2B4766;
  --gold: #F5B301;
  --gold-400: #FFC52E;
  --gold-ink: #8A6100;
  --gold-soft: #FDF3D6;
  --paper: #FAF8F4;
  --sand: #F3EFE7;
  --surface: #FFFFFF;
  --line: #E7E2D8;
  --line-strong: #D8D1C4;
  --ink: #0D1B2A;
  --ink-2: #364354;
  --muted: #667180;
  --on-dark: #FFFFFF;
  --on-dark-2: #B9C3CF;
  --on-dark-3: #8593A3;
  --green: #157A3C;
  --green-soft: #E5F4EA;
  --amber: #A65A06;
  --amber-soft: #FDF1E1;
  --red: #B42318;
  --red-soft: #FDECEA;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06), 0 1px 1px rgba(13, 27, 42, .04);
  --shadow: 0 10px 30px -12px rgba(13, 27, 42, .18), 0 2px 6px rgba(13, 27, 42, .05);
  --shadow-lg: 0 30px 60px -20px rgba(8, 19, 31, .45), 0 12px 24px -12px rgba(8, 19, 31, .25);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1160px;
  --gutter: 20px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -0.022em; }
strong, b { font-weight: 700; color: var(--ink); }
::selection { background: var(--gold); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy-900); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* Icons: inline SVG sprite, stroke style */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 27, 42, .92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--on-dark);
}
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); flex: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.brand-name .link { color: var(--gold); }
.brand-name .tz { font-weight: 600; color: var(--on-dark-2); margin-left: 3px; }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.primary-nav a { font-size: 14.5px; font-weight: 600; color: var(--on-dark-2); padding: 8px 12px; border-radius: 8px; transition: color .15s, background-color .15s; }
.primary-nav a:hover { color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.lang-switch button { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--on-dark-2); padding: 5px 11px; border-radius: 999px; line-height: 1.2; transition: background-color .15s, color .15s; }
.lang-switch button:hover { color: var(--on-dark); }
.lang-switch button.active { background: var(--on-dark); color: var(--navy-900); }

.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .14); }
.menu-toggle .ic { width: 20px; height: 20px; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-download { display: none; }
  .site-header.open .mobile-nav { display: block; }
  .mobile-nav { border-top: 1px solid rgba(255, 255, 255, .07); padding: 8px 0 18px; }
  .mobile-nav a { display: block; padding: 12px 0; font-size: 16px; font-weight: 600; color: var(--on-dark-2); border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .mobile-nav a:last-of-type { border-bottom: 0; }
  .mobile-nav .btn { margin-top: 14px; width: 100%; }
}
@media (max-width: 380px) { .brand-name .tz { display: none; } }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em; line-height: 1;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-navy { background: var(--navy-900); color: var(--on-dark); }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline-dark { color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .2); }
.btn-outline-dark:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .32); }
.btn-outline { color: var(--ink); border: 1px solid var(--line-strong); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); }

.play-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .15s, opacity .15s; }
.play-badge img { height: 54px; width: auto; }
.play-badge:hover { opacity: .9; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.text-link .ic { width: 16px; height: 16px; transition: transform .15s; }
.text-link:hover .ic { transform: translateX(3px); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--navy-950); color: var(--on-dark-3); font-size: 14.5px; }
.site-footer .top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: 64px 0 48px; }
.site-footer .about p { margin-top: 16px; max-width: 320px; line-height: 1.65; }
.site-footer h4 { color: var(--on-dark); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { transition: color .15s; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; }
@media (max-width: 860px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-top: 52px; }
  .site-footer .about { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ */
/* Legal documents (privacy, delete-account)                           */
/* ------------------------------------------------------------------ */
.doc-hero { background: var(--navy-900); color: var(--on-dark-2); padding: 56px 0 48px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.doc-hero .eyebrow { color: var(--gold); }
.doc-hero h1 { color: var(--on-dark); font-size: clamp(32px, 4.4vw, 46px); margin-top: 12px; }
.doc-hero p { margin-top: 12px; max-width: 640px; font-size: 16.5px; }

.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; padding: 56px 0 88px; justify-content: center; }
.doc-layout.single { grid-template-columns: minmax(0, 720px); }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.toc h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.4; }
.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 36px; }
  .toc { display: none; }
}

.doc { font-size: 16px; color: var(--ink-2); }
.doc > div > h1 { display: none; }
.doc .updated { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 28px; }
.doc h2 { font-size: 22px; margin: 44px 0 14px; padding-top: 4px; }
.doc h2:first-of-type { margin-top: 28px; }
.doc p { margin: 12px 0; line-height: 1.75; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 8px 0; line-height: 1.7; padding-left: 4px; }
.doc li::marker { color: var(--muted); }
.doc a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc .card, .doc .steps { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px 20px 22px; margin: 16px 0; box-shadow: var(--shadow-sm); }
.doc .card ul, .doc .steps ul, .doc .steps ol { margin: 0; }
.doc .steps ol { counter-reset: step; list-style: none; padding-left: 0; }
.doc .steps ol li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; }
.doc .steps ol li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 999px; background: var(--navy-900); color: var(--gold);
  font-size: 13.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.doc .warn { background: var(--red-soft); border: 1px solid rgba(180, 35, 24, .22); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0; }
.doc .warn strong { color: var(--red); }
.doc .warn ul { margin-bottom: 0; }
@media (max-width: 640px) {
  .doc .card, .doc .steps, .doc .warn { padding: 16px 16px 16px 14px; }
}
