/* PACO design tokens — extracted 2026-05-11 from the live marketing site
   (https://pacoai.co/_next/static/chunks/0qb~1-k4uc-__.css).

   This is the single source of truth for Flask-served pages. Every legacy
   template that gets restyled in Phase 9 must @import or <link> this file.
   Do not edit values in legacy CSS (brand.v2.css, design-system.css); deprecate
   those files instead. */

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

:root {
  /* Brand palette */
  --warm:        #1e40ff;   /* electric cobalt — primary brand */
  --warm-soft:   #dee5ff;
  --warm-deep:   #0d2199;
  --gain:        #f4a300;   /* amber — positive deltas */
  --gain-soft:   #fdf1d2;
  --loss:        #c8443a;   /* red — failures / negative deltas */
  --loss-soft:   #f6e6e3;

  /* Surface */
  --paper:       #fdfdfd;
  --ink:         #1a1a1a;
  --ink-muted:   #535862;
  --ink-faint:   #a0a4ad;
  --rule:        #e7e6e1;

  /* Typography */
  --font-sans:    "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", "Inter Fallback", Georgia, serif;
  --font-mono:    "Geist Mono", "Geist Mono Fallback", ui-monospace, monospace;

  /* Scale (kept minimal — page-level CSS extends as needed) */
  --container-md: 28rem;
  --container-lg: 32rem;
  --container-xl: 36rem;
  --container-page: 1180px;

  /* Motion */
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --transition-duration: .15s;
}

/* Reset (minimal — matches Tailwind preflight without the bulk) */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p, li { color: var(--ink); }
p { margin: 0 0 1em; max-width: 70ch; }

a { color: var(--warm); text-decoration: none; }
a:hover { color: var(--warm-deep); text-decoration: underline; }

code, pre, .mono { font-family: var(--font-mono); }
em, i, .display-italic {
  font-family: var(--font-display);
  font-style: italic;
}

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

/* Page shell */
.geo-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
}
.geo-page > main {
  flex: 1;
  width: 100%;
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* Shared header */
.geo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 253, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.geo-header-inner {
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.geo-brand {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 500;
}
.geo-brand:hover { color: var(--warm); text-decoration: none; }
.geo-brand .mark { color: var(--warm); }
.geo-nav {
  display: flex;
  gap: 1.75rem;
  font-size: .95rem;
}
.geo-nav a {
  color: var(--ink-muted);
  font-weight: 500;
}
.geo-nav a:hover { color: var(--ink); text-decoration: none; }
.geo-cta {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.1rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: .95rem;
  transition: background var(--transition-duration) var(--ease-out);
}
.geo-cta:hover { background: var(--warm); color: var(--paper); text-decoration: none; }
.geo-cta--primary { background: var(--warm); }
.geo-cta--primary:hover { background: var(--warm-deep); }

@media (max-width: 760px) {
  .geo-nav { display: none; }
}

/* Shared footer */
.geo-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 4rem;
}
.geo-footer-inner {
  max-width: var(--container-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
}
.geo-footer-brand p {
  color: var(--ink-muted);
  font-size: .9rem;
  margin-top: .8rem;
  max-width: 32ch;
}
.geo-footer-col h4 {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-muted);
  margin: 0 0 .9rem;
}
.geo-footer-col ul { list-style: none; padding: 0; margin: 0; }
.geo-footer-col li { margin-bottom: .55rem; }
.geo-footer-col a {
  color: var(--ink);
  font-size: .92rem;
}
.geo-footer-col a:hover { color: var(--warm); text-decoration: none; }
.geo-footer-bottom {
  max-width: var(--container-page);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--ink-faint);
}

@media (max-width: 760px) {
  .geo-footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Content prose (for legal pages and long-form) */
.geo-prose {
  max-width: 70ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.geo-prose h1 { margin-bottom: 1rem; }
.geo-prose h2 { margin-top: 2.5rem; }
.geo-prose h3 { margin-top: 2rem; }
.geo-prose p { margin: 0 0 1.2rem; }
.geo-prose ul, .geo-prose ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.geo-prose li { margin-bottom: .4rem; }
.geo-prose strong { color: var(--ink); font-weight: 600; }
.geo-prose code {
  background: var(--rule);
  padding: .1rem .3rem;
  border-radius: 3px;
  font-size: .9em;
}
.geo-prose hr { margin: 2.5rem 0; }
.geo-prose blockquote {
  border-left: 3px solid var(--warm);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}
