/* ============================================================
   stocura — shared site styles
   Tokens, typography, layout primitives, nav, footer, components
   ============================================================ */

:root {
  /* Brand */
  --ink: #0E1B2C;
  --tide: #1E4A6B;
  --tide-hover: #163A55;
  --surf: #4A8FB8;
  --mist: #E8EFF5;
  --cloud: #F7F9FB;
  --white: #FFFFFF;

  --ember: #C26E3E;
  --leaf: #4A7C5C;
  --clay: #B5443D;

  --slate-900: #1A2332;
  --slate-700: #475569;
  --slate-500: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;

  --tide-tint: rgba(30, 74, 107, 0.08);
  --tide-tint-strong: rgba(30, 74, 107, 0.18);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii / elevation */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(14, 27, 44, 0.06);
  --shadow-md: 0 4px 14px rgba(14, 27, 44, 0.06), 0 1px 3px rgba(14, 27, 44, 0.05);
  --shadow-lg: 0 12px 32px rgba(14, 27, 44, 0.10), 0 2px 6px rgba(14, 27, 44, 0.05);

  /* Layout */
  --max: 1200px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cloud);
  color: var(--slate-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--tide); text-decoration: none; }
a:hover { color: var(--tide-hover); }

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

/* ---------- Type scale ---------- */
.t-display { font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
.t-h1      { font-size: 40px; line-height: 1.10; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
.t-h2      { font-size: 28px; line-height: 1.20; letter-spacing: -0.01em; font-weight: 600; color: var(--ink); }
.t-h3      { font-size: 20px; line-height: 1.30; font-weight: 600; color: var(--ink); }
.t-h4      { font-size: 17px; line-height: 1.40; font-weight: 600; color: var(--ink); }
.t-bodyL   { font-size: 18px; line-height: 1.5; color: var(--slate-700); }
.t-body    { font-size: 16px; line-height: 1.5; color: var(--slate-900); }
.t-bodyS   { font-size: 14px; line-height: 1.5; color: var(--slate-700); }
.t-caption { font-size: 13px; line-height: 1.4; color: var(--slate-500); }
.t-mono    { font-family: var(--font-mono); font-size: 14px; line-height: 1.5; }
.t-eyebrow { font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tide); }

h1, h2, h3, h4, h5 { margin: 0; }
p { margin: 0 0 1em 0; color: var(--slate-700); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .t-display { font-size: 40px; }
  .t-h1 { font-size: 32px; }
  .section { padding: 64px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--tide); color: white; }
.btn-primary:hover { background: var(--tide-hover); color: white; }
.btn-secondary { background: white; color: var(--ink); border-color: var(--slate-300); }
.btn-secondary:hover { background: var(--mist); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--slate-700); }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 13px 22px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -0.015em; font-size: 19px; }
.nav-links { display: flex; gap: 26px; align-items: center; flex: 1; }
.nav-links a { color: var(--slate-700); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .signin { color: var(--slate-700); font-size: 14.5px; font-weight: 500; }
.nav-cta .signin:hover { color: var(--ink); }

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

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--slate-300);
  padding: 64px 0 32px;
  margin-top: 96px;
}
.footer a { color: var(--slate-300); font-size: 14px; }
.footer a:hover { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h5 { font-size: 13px; font-weight: 600; color: white; margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand-block { color: var(--slate-500); font-size: 14px; line-height: 1.6; max-width: 260px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: var(--slate-500);
}
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--slate-500); display: inline-flex; }
.footer-social a:hover { color: white; }

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

/* ---------- Cards ---------- */
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.card:hover { border-color: var(--slate-300); }

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--mist);
  color: var(--tide);
}
.pill-ember { background: rgba(194,110,62,0.10); color: var(--ember); }
.pill-leaf  { background: rgba(74,124,92,0.10); color: var(--leaf); }
.pill-clay  { background: rgba(181,68,61,0.10); color: var(--clay); }
.pill-slate { background: var(--slate-200); color: var(--slate-700); }

/* ---------- Hero common ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tide);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--slate-200);
  background: linear-gradient(180deg, var(--white) 0%, var(--cloud) 100%);
}
.crumbs { color: var(--slate-500); font-size: 13px; margin-bottom: 16px; }
.crumbs a { color: var(--slate-500); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 8px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 360px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  color: var(--slate-700);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-actions { display: flex; gap: 8px; }
.cookie .btn { padding: 6px 12px; font-size: 13px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--slate-500); }
.divider { height: 1px; background: var(--slate-200); margin: 32px 0; border: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate-900); font-size: 15px; }
.checklist .ck {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--tide-tint);
  color: var(--tide);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* Inline SVG mark sizing helpers */
.mark-16 { width: 16px; height: 16px; }
.mark-20 { width: 20px; height: 20px; }
.mark-24 { width: 24px; height: 24px; }
.mark-32 { width: 32px; height: 32px; }
