/* ============================================================
   QuikStartup — style.css
   Design tokens, reset, base typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,600&family=Outfit:wght@400;500;600;700&family=DM+Mono:wght@500&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand */
  --brand:       #2C5DFF;
  --brand-hover: #1A4AE8;
  --brand-light: #EEF2FF;
  --brand-mid:   #C7D4FF;
  --brand-dark:  #1A3AB8;

  /* Dark surfaces (nav/footer only) */
  --navy:   #0B1426;
  --navy-2: #111E38;

  /* Backgrounds */
  --white:     #FFFFFF;
  --surface-1: #F7F9FC;
  --surface-2: #EEF1F8;
  --surface-3: #E4E9F4;

  /* Text */
  --text-1: #0D1526;
  --text-2: #2E3A5C;
  --text-3: #6B7A9E;

  /* Borders */
  --border:   #DDE3F2;
  --border-2: #C8D1EA;

  /* Accents */
  --accent-green: #12B76A;
  --accent-amber: #F59E0B;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.75rem;

  /* Line heights */
  --lead-tight:  1.10;
  --lead-snug:   1.32;
  --lead-normal: 1.60;
  --lead-loose:  1.82;

  /* Letter spacing */
  --track-tight:  -0.03em;
  --track-snug:   -0.01em;
  --track-normal:  0em;
  --track-wide:    0.06em;
  --track-wider:   0.12em;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-7:  1.75rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-14: 3.5rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13,21,38,0.06), 0 1px 2px rgba(13,21,38,0.04);
  --shadow-md: 0 4px 16px rgba(13,21,38,0.08), 0 2px 6px rgba(13,21,38,0.05);
  --shadow-lg: 0 8px 32px rgba(13,21,38,0.10), 0 4px 12px rgba(13,21,38,0.06);
  --shadow-xl: 0 20px 60px rgba(13,21,38,0.12), 0 8px 24px rgba(13,21,38,0.07);

  /* Z-index */
  --z-nav:   100;
  --z-modal: 200;
  --z-toast: 300;

  /* Easing */
  --ease-fast:   cubic-bezier(0.2,0,0,1);
  --ease-base:   cubic-bezier(0.4,0,0.2,1);
  --ease-out:    cubic-bezier(0,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--lead-normal);
  color: var(--text-1);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { cursor: pointer; font-family: var(--font-body); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: var(--r-full); }
::-webkit-scrollbar-track { background: var(--surface-1); }

/* ── Selection ── */
::selection { background: var(--brand-light); color: var(--navy); }

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ── Utilities ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-8 { margin-top: var(--sp-8); }
.prose { max-width: 68ch; }

/* ── Legal content prose ── */
.legal-content section { margin-bottom: var(--sp-10); }

.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
  letter-spacing: var(--track-snug);
  line-height: var(--lead-snug);
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--sp-3);
  margin-top: var(--sp-6);
}

.legal-content p {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--lead-loose);
  margin-bottom: var(--sp-4);
}

.legal-content ul {
  margin-left: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.legal-content li {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--lead-loose);
}

.legal-content a { color: var(--brand); font-weight: 600; }
.legal-content strong { color: var(--text-1); font-weight: 600; }
