/* SRQ Analytics — landing page styles */

:root {
  --paper: #f4f0e6;
  --paper-2: #efe9db;
  --ink: #0d2723;
  --ink-soft: #1c3b35;
  --teal: #16635a;
  --teal-bright: #1f8a7d;
  --brass: #bd8b4e;
  --brass-soft: #d6a96a;
  --line: rgba(13, 39, 35, 0.14);
  --line-strong: rgba(13, 39, 35, 0.28);
  --muted: rgba(13, 39, 35, 0.62);
  --muted-on-dark: rgba(244, 240, 230, 0.66);

  --font-display: "Spectral", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--brass);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--brass-soft); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }

.display {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--teal); }

.h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.015em; text-wrap: balance; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); line-height: 1.55; max-width: 60ch; }
.lead.on-dark { color: var(--muted-on-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--teal); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-primary.on-dark { background: var(--brass); color: var(--ink); }
.btn-primary.on-dark:hover { background: var(--brass-soft); }
.btn-ghost.on-dark { color: var(--paper); border-color: rgba(244,240,230,.35); }
.btn-ghost.on-dark:hover { border-color: var(--paper); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.brand .mark { flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .15s ease; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 116px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy > * + * { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta .item { display: flex; flex-direction: column; gap: 3px; }
.hero-meta .k { font-family: var(--font-display); font-size: 27px; font-weight: 600; color: var(--ink); }
.hero-meta .l { font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }

/* hero visual card */
.viz {
  position: relative;
  background: var(--ink);
  border-radius: 4px;
  padding: 30px;
  color: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(13,39,35,.5);
  overflow: hidden;
}
.viz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.viz-title { font-family: var(--font-body); font-size: 13px; letter-spacing: .03em; color: var(--muted-on-dark); }
.viz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(31,138,125,.18); }
.viz-row { display: flex; align-items: flex-end; gap: 7px; height: 120px; margin-bottom: 22px; }
.viz-bar { flex: 1; background: linear-gradient(180deg, var(--teal-bright), var(--teal)); border-radius: 2px 2px 0 0; opacity: .92; }
.viz-bar.brass { background: linear-gradient(180deg, var(--brass-soft), var(--brass)); }
.viz-list { display: flex; flex-direction: column; gap: 12px; }
.viz-item { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; padding-bottom: 12px; border-bottom: 1px solid rgba(244,240,230,.1); }
.viz-item:last-child { border-bottom: none; padding-bottom: 0; }
.viz-item .lbl { color: var(--muted-on-dark); display: flex; align-items: center; gap: 9px; }
.viz-item .val { font-family: var(--font-display); font-weight: 600; }
.viz-item .pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; background: rgba(31,138,125,.18); color: var(--teal-bright); }
.viz-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(31,138,125,.22), transparent 70%); top: -120px; right: -80px; pointer-events: none; }

/* hero YoY chart */
.viz-kpi { display: flex; align-items: baseline; gap: 11px; margin-bottom: 18px; }
.viz-big { font-family: var(--font-display); font-size: 33px; font-weight: 600; line-height: 1; color: inherit; }
.viz-delta { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 100px; background: color-mix(in srgb, var(--teal-bright) 20%, transparent); color: var(--teal-bright); }
.viz-chart { display: flex; align-items: flex-end; gap: 14px; height: 116px; margin-bottom: 14px; }
.viz-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.viz-pair { display: flex; align-items: flex-end; justify-content: center; gap: 5px; width: 100%; flex: 1; }
.viz-pair .vb { width: 13px; border-radius: 2px 2px 0 0; }
.viz-pair .vb.prev { background: rgba(244,240,230,.16); }
.viz-pair .vb.cur { background: linear-gradient(180deg, var(--teal-bright), var(--teal)); }
.viz-x { font-size: 11px; color: var(--muted-on-dark); font-weight: 500; }
.viz-legend { display: flex; gap: 18px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid rgba(244,240,230,.1); }
.viz-legend span { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted-on-dark); }
.viz-legend .sw { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.viz-legend .sw.prev { background: rgba(244,240,230,.28); }
.viz-legend .sw.cur { background: var(--teal-bright); }

/* ---------- section frame ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 20px; }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark .h2 { color: var(--paper); }
.section.dark .display em { color: var(--brass-soft); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.svc {
  background: var(--paper);
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background .2s ease;
}
.svc:hover { background: var(--paper-2); }
.svc-num { font-family: var(--font-display); font-size: 13px; color: var(--brass); font-weight: 600; letter-spacing: .05em; }
.svc-ico { width: 40px; height: 40px; color: var(--teal); }
.svc h3 { font-size: 25px; }
.svc p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.svc-tags span { font-size: 12px; font-weight: 500; color: var(--ink-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 100px; }
.svc.feature { grid-column: span 2; background: linear-gradient(120deg, var(--paper-2), var(--paper)); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } .svc.feature { grid-column: span 1; } }

/* ---------- outcomes ---------- */
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3vw, 48px); }
.outcome { display: flex; flex-direction: column; gap: 13px; padding-top: 26px; border-top: 2px solid var(--teal); }
.outcome .ix { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.outcome h3 { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.12; }
.outcome p { color: var(--muted); font-size: 15.5px; line-height: 1.62; }
@media (max-width: 760px) { .outcomes { grid-template-columns: 1fr; } }

/* ---------- approach ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.pillar { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid var(--brass); }
.pillar h3 { font-size: 22px; color: var(--paper); }
.pillar p { color: var(--muted-on-dark); font-size: 15px; line-height: 1.6; }
.pillar .idx { font-family: var(--font-display); font-size: 13px; color: var(--brass-soft); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { background: var(--paper); padding: 30px 24px 34px; display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: var(--font-display); font-size: 32px; color: var(--teal); font-weight: 600; }
.step h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-card { background: var(--ink); color: var(--paper); border-radius: 4px; padding: clamp(30px, 4vw, 48px); position: relative; overflow: hidden; }
.about-card .glow { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(189,139,78,.2), transparent 70%); bottom: -100px; left: -60px; }
.about-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-bright), var(--teal)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--paper); }
.about-card .name { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 20px; }
.about-card .role { font-size: 13.5px; color: var(--muted-on-dark); margin-top: 2px; }
.about-card .quote { font-family: var(--font-display); font-size: 19px; line-height: 1.45; margin-top: 24px; color: var(--paper); }
.about-copy > * + * { margin-top: 22px; }
.about-copy p { color: var(--muted); font-size: 16.5px; line-height: 1.65; max-width: 56ch; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- contact / cta ---------- */
.cta { text-align: center; }
.cta .display { margin: 0 auto 22px; max-width: 16ch; }
.cta .lead { margin: 0 auto 36px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(244,240,230,.16); }
.cta-contacts a { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--muted-on-dark); transition: color .15s ease; }
.cta-contacts a:hover { color: var(--brass-soft); }

/* ---------- footer ---------- */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer .brand { font-size: 18px; }
.footer .meta { font-size: 13px; color: var(--muted); }
.footer .meta a:hover { color: var(--teal); }

/* Scroll-reveal is driven entirely by inline styles from useReveal() (icons.jsx),
   so content stays visible if JS is disabled or the observer misfires. */
