/* Greg design tokens.
   Palette + construction cloned from the reference (meetcleo.com), measured 2026-09-22 —
   see ../DESIGN.md and ../../docs/growth/reference/cleo-palette.json for the raw measurements.
   Typefaces are free stand-ins for the reference's licensed families (PPNeueMontreal / SimplonMono):
   Switzer is the closest legally usable grotesque; JetBrains Mono stands in for the mono. */
/* Fonts are served from gotogreg.io itself: loading them from Google or Fontshare would send
   every visitor's IP address to a third party on every page (the 2022 Google Fonts rulings).
   Switzer: ITF Free Font License (Fontshare). JetBrains Mono: SIL Open Font License 1.1. */
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 300; font-display: swap; src: url('/design/fonts/switzer-300.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 400; font-display: swap; src: url('/design/fonts/switzer-400.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 500; font-display: swap; src: url('/design/fonts/switzer-500.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 600; font-display: swap; src: url('/design/fonts/switzer-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/design/fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/design/fonts/jetbrains-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/design/fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/design/fonts/jetbrains-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Measured from the reference, in order of painted area */
  --ink: #47201C;            /* rgb(71,32,28)  — all body text, the dominant ink */
  --ink-deep: #291210;       /* rgb(41,18,16)  — dark panels, overlays */
  --ink-50: rgba(71, 32, 28, 0.5);
  --ink-60: rgba(41, 18, 16, 0.6);
  --paper: #FFFFFF;          /* the page is white; panels carry the colour */
  --cream: #F8F6F2;          /* rgb(248,246,242) — alternate section ground */
  --blush: #F3E9E3;          /* rgb(243,233,227) — gradient tail under panels */
  --mauve: #AC9B98;          /* rgb(172,155,152) — muted panel ground, shadow tint */
  --peach: #FFB883;          /* headline accent ON DARK + gradient washes */
  --peach-ink: #B8621B;      /* same hue, darkened for accents on white: the reference's peach
                                fails contrast on light ground (1.85:1); this passes large-text 3:1 */
  --peach-pale: #FFE3D1;     /* pale wash bands */
  --tint-10: rgba(41, 18, 16, 0.1);   /* quiet button fill on light */
  --tint-20: rgba(41, 18, 16, 0.2);
  --on-dark-20: rgba(255, 255, 255, 0.2); /* quiet button fill on photography */
  --on-dark-30: rgba(255, 255, 255, 0.30); /* inactive bars, hairlines on ink-deep */
  --on-dark-60: rgba(255, 255, 255, 0.60); /* labels, cites on ink-deep */
  --on-dark-75: rgba(255, 255, 255, 0.75); /* body on ink-deep */
  --ink-deep-60: rgba(41, 18, 16, 0.6);   /* dark-nav link pill (.gnav--escuro a.on) */
  --ink-deep-70: rgba(41, 18, 16, 0.7);   /* hero scrim, top */
  --ink-deep-88: rgba(41, 18, 16, 0.88);  /* hero scrim, bottom */
  --peach-20: rgba(255, 184, 131, 0.2);   /* hero glow */
  --paper-74: rgba(255, 255, 255, 0.74);  /* CTA band card */
  --paper-88: rgba(255, 255, 255, 0.88);  /* e-mail preview card */
  --band-barato-11: rgba(15, 122, 90, 0.11); /* «gchip» fill */
  --hairline: rgba(134, 134, 134, 0.2);

  /* Map (2026-10-14). Neutral greys measured from the Porto Layers reference
     map, so the price dots are the only colour on screen. */
  --map-land: #E2E2E2;
  --map-block: #D7D7D7;
  --map-road: #FFFFFF;
  --map-water: #BEBEBE;
  --map-label: #6E6E6E;
  /* Price bands — the only new hues. Values await the owner's approval on the
     first screenshots (spec §2, «Fit with earlier decisions»). */
  --band-barato: #0F7A5A;
  --band-normal: #8A7E7C;
  --band-caro: #C2410C;

  /* Type — scale measured at the reference: 63 / 47.5 / 31.7 / 23.8 / 19.8 / 15.8 / 12.8 */
  --font-ui: 'Switzer', ui-sans-serif, system-ui, sans-serif;
  --font-doc: 'JetBrains Mono', ui-monospace, monospace;
  --t-xs: 0.8rem;      /* 12.8 — mono eyebrow, legal */
  --t-sm: 0.99rem;     /* 15.8 — UI, buttons, nav */
  --t-base: 1.2375rem; /* 19.8 — body, chat */
  --t-md: 1.485rem;    /* 23.8 — card headings */
  --t-lg: 1.98rem;     /* 31.7 — small statements */
  --t-xl: 2.97rem;     /* 47.5 — section statements */
  --t-2xl: 3.96rem;    /* 63.3 — hero */

  /* Space — reference uses 220px between statement sections, 8px between stacked panels */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-8: 3rem; --s-10: 4.5rem;
  --section-y: clamp(6rem, 13vw, 13.75rem);
  --panel-gap: 0.5rem;

  /* Shape — measured: 88px pills, 64/30/28/20px panels, 32px 32px 32px 0 speech bubbles */
  --r-pill: 88px;
  --r-panel: 30px;
  --r-card: 20px;
  --r-bubble-greg: 32px 32px 32px 0;
  --r-bubble-user: 32px 32px 0 32px;

  --shadow-card: rgba(0, 0, 0, 0.1) 0 6px 12px 0;
  --shadow-float: rgba(172, 155, 152, 0.4) -40px 90px 90px 0;

  --page-w: 1400px;
  --read-w: 58ch;
  --chat-w: 520px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.32;
  -webkit-font-smoothing: antialiased;
}

/* Headlines: light weight, tight leading, sentence case — never all-caps, never one word coloured
   except the single peach clause the reference uses once per page. */
h1, h2 { font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.25rem, 6vw, var(--t-2xl)); }
h2 { font-size: clamp(1.75rem, 4.6vw, var(--t-xl)); }
h3 { font-size: var(--t-md); font-weight: 500; line-height: 1.17; margin: 0; }
p { margin: 0 0 var(--s-4); max-width: var(--read-w); }
a { color: inherit; }

.doc-value { font-family: var(--font-doc); font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

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