/* Yutani Labs — brand palette mirrored from the Moneyfactor asset catalog
   (Moneyfactor/Resources/Assets.xcassets/Brand/*.colorset) */

:root {
  --primary: #475569;
  --accent: #0E7C7B;
  --warn: #B45309;
  --danger: #A93545;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: rgba(71, 85, 105, 0.15);
  --text: #1E293B;
  --text-secondary: #64748B;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #94A3B8;
    --accent: #14B8A6;
    --warn: #F59E0B;
    --danger: #F87171;
    --bg: #0F172A;
    --surface: #334155;
    --border: rgba(148, 163, 184, 0.32);
    --text: #F1F5F9;
    --text-secondary: #B8C5D6;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / nav ---- */

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand .mark { color: var(--accent); }

nav.site a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 22px;
  font-size: 0.95rem;
}

nav.site a:first-child { margin-left: 0; }
nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--accent); }

/* ---- Type ---- */

main { padding: 56px 0 72px; }

h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 680;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  font-weight: 640;
}

h3 {
  font-size: 1.02rem;
  margin: 28px 0 8px;
  font-weight: 620;
}

p { margin: 0 0 18px; }

.lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

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

ul { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 9px; }

strong { font-weight: 640; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

/* ---- Cards ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  margin: 0 0 20px;
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 640;
  margin: 0 0 8px;
}

.meta {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ---- Footer ---- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 30px 0 44px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer.site a { color: var(--text-secondary); }
footer.site a:hover { color: var(--accent); }

footer.site .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

footer.site .links a { margin-left: 18px; }
footer.site .links a:first-child { margin-left: 0; }

/* ---- Legal documents ---- */

.legal h2 {
  font-size: 1.12rem;
  margin-top: 38px;
}

.legal .updated {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 34px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 0 0 22px;
}

.callout p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 1.72rem; }
  main { padding: 40px 0 56px; }
  .card { padding: 22px; }
  nav.site a { margin-left: 16px; }
}
