/* costsegroi.com — shared styles
   Brand-aligned with costsegsmart.com (tokens.css):
   navy primary, brand-green accent (semantic for ROI/return),
   gold tertiary, IBM Plex Sans + Source Serif 4. */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300..900;1,8..60,300..900&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Neutrals — from costsegsmart tokens.css */
  --bg: #ffffff;
  --bg-2: #f4f6f9;
  --bg-3: #e4e8ee;
  --ink: #0b1220;        /* ink-900 */
  --ink-2: #2a3648;      /* ink-700 */
  --muted: #5a6778;      /* ink-500 */
  --muted-2: #8892a3;    /* ink-400 */
  --rule: #e4e8ee;       /* ink-200 */
  --rule-strong: #c2c9d4;/* ink-300 */

  /* Brand — from costsegsmart tokens.css */
  --navy: #0a2540;       /* brand-navy */
  --navy-soft: #12365c;  /* brand-navy-2 */
  --gold: #c9a24a;       /* brand-gold (used for highlights) */

  /* Accent = the "Smart" wordmark blue (vfNav__brandBlue on costsegsmart.com) */
  --accent: #0a5ad9;
  --accent-soft: #cfe0fa;
  --accent-tint: #ecf2fd;
  --accent-ink: #052e6f;

  /* Warn = brand red */
  --warn: #b33a3a;
  --warn-soft: #f9e3e3;

  --serif: "Source Serif 4", "Charter", "Georgia", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --max: 1280px;
  --measure: 720px;
}

[data-theme="dark"] {
  --bg: #0a2540;         /* brand-navy as ground */
  --bg-2: #12365c;       /* brand-navy-2 */
  --bg-3: #1a4474;
  --ink: #f4f6f9;
  --ink-2: #dde3ee;
  --muted: #a0acc0;
  --muted-2: #6e7c95;
  --rule: #1f4a76;
  --rule-strong: #2e6699;
  --navy: #f4f6f9;
  --navy-soft: #dde3ee;
  --accent-soft: rgba(10, 90, 217, 0.26);
  --accent-tint: rgba(10, 90, 217, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}

/* iOS no-zoom + tap target baseline */
input:not([type=hidden]), select, textarea { font-size: 16px; }
nav a, .nav a, .top-nav a, button { min-height: 44px; }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); transition: border-color .15s, color .15s; }
a:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* — Top nav — */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.brand {
  font-family: var(--sans);
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
  border: none;
}
.brand-mark {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--bg);
  font-family: var(--sans); font-weight: 700; font-size: 11px;
  border-radius: 4px;
  letter-spacing: -0.02em;
}
[data-theme="dark"] .brand-mark { background: var(--accent); color: white; }
.brand-name { color: var(--ink); }
.brand-tld { color: var(--muted); font-weight: 400; }
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--sans); font-size: 14px;
}
.nav-links a {
  border: none; color: var(--muted);
  display: inline-flex; align-items: center;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  border: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .12s, background .15s;
}
.nav-cta:hover { background: var(--accent); color: white; transform: translateY(-1px); }
[data-theme="dark"] .nav-cta { background: var(--accent); color: white; }
[data-theme="dark"] .nav-cta:hover { background: var(--ink); color: var(--bg); }

/* — Type — */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px;
  background: var(--rule-strong);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em; color: var(--ink); line-height: 1.08; margin: 0; }
.display { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.06; letter-spacing: -0.028em; }
h1 { font-size: clamp(36px, 4.2vw, 60px); }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
h3 { font-size: 22px; }

p { margin: 0 0 1em; color: var(--ink-2); }
.lede { font-size: 22px; line-height: 1.5; color: var(--muted); max-width: 640px; font-weight: 300; }

.num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01";
  letter-spacing: -0.03em;
  font-weight: 500;
}

/* — Layout — */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; border-top: 1px solid var(--rule); }
.section.no-rule { border-top: none; }
.measure { max-width: var(--measure); }

/* — Buttons — */
.btn {
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  cursor: pointer;
  transition: transform .12s ease, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); background: var(--accent); border-color: var(--accent); color: white; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* — Footer — */
.footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
}
.footer h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a {
  font-family: var(--sans); font-size: 14px; color: var(--ink-2);
  border: none;
}
.footer ul a:hover { color: var(--accent); }
.footer-meta {
  max-width: var(--max); margin: 48px auto 0; padding: 24px 32px 0;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 12px; color: var(--muted);
}

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
}
[data-theme="dark"] .pill { color: color-mix(in oklab, var(--accent) 70%, var(--ink)); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Reusable rule */
hr.rule { border: none; border-top: 1px solid var(--rule); margin: 32px 0; }

/* Sample card grid */
.kv {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--sans); font-size: 14px;
}
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; gap: 16px; }
  .nav-links { display: none; }
  .section { padding: 56px 0; }
}
