/* ============================================================
   Unicorn Money — Shared content page styles
   Used by: security.html, privacy.html, terms.html
   ============================================================ */

:root {
  --indigo: #4f46e5;
  --indigo-deep: #1E1B3A;
  --indigo-darker: #14122A;
  --indigo-300: #a5b4fc;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --amber-300: #fcd34d;
  --emerald-300: #6ee7b7;
  --violet-300: #c4b5fd;
  --cream: #fdfbf7;
  --paper: #faf6ee;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --ink-muted: #78716c;
  --rule: #e7e5e4;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 88% 92%, rgba(79, 70, 229, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Top nav ---------- */
.nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(30, 27, 58, 0.20);
}

.logo-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.back-link {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.back-link:hover { color: var(--indigo); }

/* ---------- Page main ---------- */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin-bottom: 20px;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--indigo);
}

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.signature {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 64px 0 8px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

h2 .num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

h2 + p { margin-top: 16px; }

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  margin: 40px 0 8px;
  color: var(--ink);
}

p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 16px 0;
}

p strong { color: var(--ink); font-weight: 600; }

ul, ol {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 22px;
  margin: 16px 0;
}

ul li, ol li { margin: 6px 0; }
ul li strong, ol li strong { color: var(--ink); font-weight: 600; }

/* Pull quote (security page) */
.pull {
  background: var(--paper);
  border-left: 3px solid var(--amber);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 4px 12px 12px 4px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}

.pull strong { font-style: normal; color: var(--ink); }

/* Honest disclosure box (security page) */
.honest {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(79, 70, 229, 0.12);
  padding: 28px 28px 24px;
  margin: 32px 0;
  border-radius: 16px;
}

.honest .label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--indigo);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.honest .label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--indigo);
  border-radius: 50%;
}

.honest p { margin: 0; font-size: 15.5px; }
.honest p + p { margin-top: 12px; }

/* Checklist style (security page) */
ul.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

ul.checks li {
  position: relative;
  padding: 14px 0 14px 36px;
  font-size: 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  line-height: 1.55;
}

ul.checks li:last-child { border-bottom: none; }

ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber);
  background-image:
    linear-gradient(45deg, transparent 35%, white 35%, white 42%, transparent 42%),
    linear-gradient(-45deg, transparent 50%, white 50%, white 57%, transparent 57%);
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

ul.checks li strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* Contact box */
.contact {
  margin: 32px 0;
  padding: 24px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.contact a {
  color: var(--indigo);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}

.contact a:hover { border-bottom-color: var(--indigo); }

/* Footer (canonical, shared site-wide) */
footer {
  padding: 40px 24px;
  border-top: 1px solid var(--stone-200);
  text-align: center;
  color: var(--stone-500);
  font-size: 13px;
}

footer .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

footer .brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

footer .brand-mark img { width: 100%; height: 100%; display: block; }

footer .footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

footer .footer-links a {
  color: var(--stone-500);
  text-decoration: none;
}

footer .footer-links a:hover { color: var(--stone-900); }

footer .legal {
  margin-top: 14px;
  font-size: 12px;
  color: var(--stone-500);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 600px) {
  main { padding: 40px 20px 64px; }
  h1 { font-size: 36px; }
  h2 { font-size: 24px; gap: 10px; margin-top: 48px; }
  .lede { font-size: 19px; }
  .pull { font-size: 16.5px; padding: 18px 20px; }
  .honest { padding: 22px 22px 18px; }
}
