/* Latent Agency brand tokens and shared components.
   Palette, type and motifs follow the brand one-pager: Midnight Navy, Electric Teal,
   Soft Mint, Warm Ivory, Slate Grey, Cobalt; Sora for display, Inter for body and UI,
   IBM Plex Mono for technical accents. Fonts are served from this site, not a font service. */

@font-face { font-family: "Sora"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/sora-700.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/sora-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/plexmono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/plexmono-500.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* brand */
  --navy: #0B1020;
  --navy-2: #141C36;
  --teal: #15C7B8;
  --mint: #CFF6EF;
  --ivory: #F6F3EC;
  --slate: #6E7787;
  --cobalt: #4E63FF;
  /* derived: readable text versions and tints (the brand teal alone is too light for small text) */
  --teal-ink: #08766D;
  --slate-ink: #4A5262;
  --cobalt-ink: #3442C9;
  --cobalt-tint: #E3E7FF;
  --amber-ink: #7A4E00;
  --amber-tint: #FFF0CF;
  --danger-ink: #A8201A;
  --danger-tint: #FBE3E1;
  --white: #FFFFFF;
  --line: #E2DED2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 16, 32, 0.05), 0 10px 28px rgba(11, 16, 32, 0.07);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--cobalt-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }

[hidden] { display: none !important; }
.accent { color: var(--teal); }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-ink); margin: 0 0 1rem; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--slate-ink); }
.small { font-size: 0.875rem; }

/* buttons: pill shaped */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 0.95rem/1 var(--font-body); cursor: pointer; text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-2); color: var(--white); }
.btn--teal { background: var(--teal); color: var(--navy); }
.btn--teal:hover { background: #3DE0CF; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--danger { background: transparent; color: var(--danger-ink); border-color: var(--danger-ink); }
.btn--danger:hover { background: var(--danger-ink); color: var(--white); }
.btn--small { min-height: 36px; padding: 0 1rem; font-size: 0.85rem; }

/* chips / pills */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.8rem; border-radius: 999px;
  font: 500 0.78rem/1.2 var(--font-body); background: var(--mint); color: var(--teal-ink); white-space: nowrap;
}
.chip--cobalt { background: var(--cobalt-tint); color: var(--cobalt-ink); }
.chip--amber { background: var(--amber-tint); color: var(--amber-ink); }
.chip--danger { background: var(--danger-tint); color: var(--danger-ink); }
.chip--slate { background: #E8E5DB; color: var(--slate-ink); }
.chip--navy { background: var(--navy); color: var(--white); }
.chip--mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.card--flat { box-shadow: none; }
.card--dark {
  position: relative; overflow: hidden; color: var(--white); border: 0;
  background: linear-gradient(135deg, #0B1020 0%, #132050 70%, #1B2F7A 100%);
}
.card--dark .muted { color: #B8C0D6; }
.card h3 { margin-bottom: 0.35em; }

/* gradient orb: the quiet "intelligence" motif */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 30%, #CFF6EF 0%, #15C7B8 46%, #4E63FF 100%);
  filter: blur(2px); opacity: 0.9;
}
.orb--soft { filter: blur(40px); opacity: 0.55; }

/* modular grid motif */
.grid-motif { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; width: 64px; }
.grid-motif i { display: block; aspect-ratio: 1.2; border-radius: 6px; background: var(--mint); }
.grid-motif i:nth-child(2) { background: #D5DBDD; }
.grid-motif i:nth-child(4) { background: var(--teal); }

/* process arrows: simple, scalable flows */
.arrows { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.arrows li {
  flex: 1 0 auto; min-width: 118px; padding: 0.7rem 1.6rem 0.7rem 2rem; margin-right: -12px;
  background: #E8EFEE; color: var(--slate-ink); text-align: center; font: 600 0.82rem/1.25 var(--font-body);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}
.arrows li:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: 1.2rem; }
.arrows li.is-done { background: var(--mint); color: var(--teal-ink); }
.arrows li.is-current { background: var(--teal); color: var(--navy); }
.arrows li.is-problem { background: var(--danger-tint); color: var(--danger-ink); }
.arrows small { display: block; font: 500 0.7rem/1.2 var(--font-mono); opacity: 0.8; }

/* connection nodes motif (empty states) */
.nodes { width: 120px; height: 70px; }

/* forms */
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 0.7rem 0.9rem; font: 400 1rem/1.4 var(--font-body); color: var(--navy);
  background: var(--white); border: 1.5px solid #CFCABB; border-radius: var(--radius-sm);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--cobalt); outline: 3px solid rgba(78, 99, 255, 0.25); outline-offset: 0; }
.field { margin-bottom: 1.1rem; }
.help { color: var(--slate-ink); font-size: 0.85rem; margin-top: 0.3rem; }
.error-text { color: var(--danger-ink); font-size: 0.9rem; margin-top: 0.3rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
