/* ==========================================================================
   Client Connect — client.fo
   Product of Client Path, LLC
   Coral-accent brand system derived from the Client Connect logo.
   ========================================================================== */

:root {
  /* Brand */
  --coral:        #F87A8C;
  --coral-hover:  #EB5570;
  --coral-deep:   #E8536A;
  --coral-label:  #C4405A;
  --coral-tint:   #FEF1F3;
  --coral-tint-2: #FEECEF;
  --coral-border: #F3D3DA;

  /* Accent node colors */
  --blue:         #1E93B8;
  --blue-bright:  #5FC6E6;
  --blue-tint:    #EAF7FC;
  --blue-border:  #C4E7F3;
  --gold:         #B0891F;
  --gold-tint:    #FEF7E0;
  --gold-border:  #F0E4AE;

  /* Ink / text */
  --ink:          #14161C;
  --text:         #454B58;
  --text-2:       #4C5462;
  --text-3:       #5A6272;
  --text-4:       #565E6D;
  --muted:        #7A8291;
  --muted-2:      #8992A2;
  --muted-3:      #9AA3B2;
  --muted-4:      #A0A8B5;
  --muted-5:      #AEB6C2;

  /* Surfaces & borders */
  --bg:           #ffffff;
  --bg-soft:      #F7F9FC;
  --border:       #EDF0F4;
  --border-2:     #E9EDF2;
  --border-3:     #DDE2E9;

  /* Footer */
  --footer-bg:    #101218;
  --footer-text:  #C3CAD5;
  --footer-mut:   #8A93A3;
  --footer-lbl:   #6B7484;

  /* Type */
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  --maxw:         1200px;
  --maxw-legal:   1080px;
  --pad-x:        64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
::selection { background: var(--coral); color: #fff; }

@keyframes ccFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ccPulse { 0%,100% { opacity: .25; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motif-inner, .motif-pulse { animation: none !important; }
}

/* ---------- Layout helpers ---------- */
.container      { max-width: var(--maxw); margin: 0 auto; }
.container-legal{ max-width: var(--maxw-legal); margin: 0 auto; }

/* ==========================================================================
   NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand-name .accent { color: var(--coral); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.nav-link {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-4);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active-legal { color: var(--coral-deep); }

.btn-contact {
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  background: var(--coral);
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(248,122,140,.9);
  transition: background .15s;
  white-space: nowrap;
}
.btn-contact:hover { background: var(--coral-hover); }

/* Legal-page header uses slightly tighter padding to match the prototype */
.site-header.legal { padding: 0 6vw; }
.site-header.legal .nav-inner { max-width: none; padding: 18px 0; }
.site-header.legal .brand-name { font-size: 19px; }
.site-header.legal .nav-links { gap: 30px; }
.site-header.legal .btn-contact { padding: 10px 19px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 84px var(--pad-x) 76px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
}
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--coral-border);
  background: var(--coral-tint);
  border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral); display: inline-block;
}
.eyebrow-pill .label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--coral-label);
}
.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
}
.hero .lede {
  margin: 0 0 34px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 500px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--coral);
  padding: 15px 26px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 14px 26px -12px rgba(248,122,140,.95);
  transition: background .15s;
}
.btn-primary:hover { background: var(--coral-hover); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-3);
  padding: 15px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .15s;
}
.btn-secondary:hover { border-color: var(--ink); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  flex-wrap: wrap;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* network motif */
.motif {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.motif-glow {
  position: absolute;
  width: 380px; height: 380px;
  max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248,122,140,.16) 0%, rgba(248,122,140,0) 68%);
}
.motif-inner {
  position: relative;
  width: 100%;
  max-width: 470px;
  animation: ccFloat 7s ease-in-out infinite;
}

/* ==========================================================================
   PLATFORMS STRIP
   ========================================================================== */
.platforms {
  padding: 40px var(--pad-x);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.platforms-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.platforms-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted-3);
  max-width: 210px;
  line-height: 1.5;
}
.platforms-list {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.platforms-list span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--muted-5);
}

/* ==========================================================================
   SECTION SCAFFOLD
   ========================================================================== */
.section { padding: 88px var(--pad-x); }
.section.soft { background: var(--bg-soft); }
.section.white { background: #fff; }
.section-head-center { text-align: center; margin-bottom: 60px; }
.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--coral-label);
}
.section-head-center .kicker { letter-spacing: .12em; }
.section-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

/* How it works */
.how { scroll-margin-top: 72px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 34px 30px;
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.step-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon.coral { background: var(--coral-tint); color: var(--coral); }
.step-icon.blue  { background: var(--blue-tint);  color: var(--blue); }
.step-icon.gold  { background: var(--gold-tint);  color: var(--gold); }
.step-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--border-2);
}
.step-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}
.step-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-3);
}

/* Features */
.features-head { max-width: 640px; margin-bottom: 52px; }
.features-head .section-title { margin: 14px 0 16px; }
.features-head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-3);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 34px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: 0 24px 50px -30px rgba(20,22,28,.28);
  transform: translateY(-3px);
}
.feature-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.feature-icon.coral { background: var(--coral-tint); color: var(--coral); }
.feature-icon.blue  { background: var(--blue-tint);  color: var(--blue); }
.feature-icon.gold  { background: var(--gold-tint);  color: var(--gold); }
.feature-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.feature-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--text-3);
}

/* CTA */
.cta-wrap { padding: 26px var(--pad-x) 88px; background: #fff; }
.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--coral) 0%, var(--coral-hover) 100%);
  padding: 62px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: .14;
}
.cta-inner { position: relative; }
.cta h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}
.cta p {
  margin: 0 auto 30px;
  font-size: 18px;
  color: rgba(255,255,255,.9);
  max-width: 560px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--coral-deep);
  background: #fff;
  padding: 16px 30px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.4);
  transition: transform .15s;
}
.btn-cta:hover { transform: translateY(-1px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  padding: 60px var(--pad-x) 34px;
}
.site-footer .footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}
.footer-brand img { display: block; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}
.footer-brand span .accent { color: var(--coral); }
.footer-blurb {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--footer-mut);
  max-width: 280px;
}
.footer-col-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--footer-lbl);
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 14.5px;
  color: var(--footer-text);
  text-decoration: none;
  margin-bottom: 11px;
  transition: color .15s;
}
.footer-link:hover { color: #fff; }
.footer-static { display: block; font-size: 14.5px; color: var(--footer-text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span { font-size: 13.5px; color: var(--footer-lbl); }

/* Legal footer variant (6vw padding, 1080 width, flex layout) */
.site-footer.legal { padding: 56px 6vw 32px; }
.site-footer.legal .footer-inner { max-width: var(--maxw-legal); }
.site-footer.legal .footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.site-footer.legal .footer-brand { margin-bottom: 16px; }
.site-footer.legal .footer-brand span { font-size: 18px; }
.site-footer.legal .footer-brand img { width: 32px; height: 32px; }
.footer-legal-left { max-width: 300px; }
.footer-legal-left .footer-blurb { font-size: 14px; }
.footer-legal-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.site-footer.legal .footer-col-label { font-size: 11.5px; margin-bottom: 14px; }
.site-footer.legal .footer-link { font-size: 14px; margin-bottom: 10px; }
.site-footer.legal .footer-bottom { padding-top: 24px; }
.site-footer.legal .footer-bottom span { font-size: 13px; }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-band {
  background: linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 6vw 48px;
}
.legal-band-inner { max-width: var(--maxw-legal); margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted-2); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--coral-deep); }
.breadcrumb .current { color: var(--text-4); }
.legal-band h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
}
.legal-updated {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted-2);
}

.legal-body {
  max-width: var(--maxw-legal);
  margin: 0 auto;
  padding: 52px 6vw 80px;
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 64px;
  align-items: start;
}
.toc { position: sticky; top: 96px; }
.toc-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted-4);
  margin-bottom: 16px;
}
.toc a {
  display: block;
  font-size: 14px;
  color: var(--text-4);
  text-decoration: none;
  padding: 6px 0;
  transition: color .15s;
}
.toc a:hover { color: var(--coral-deep); }

.legal-section { scroll-margin-top: 96px; margin-bottom: 40px; }
.legal-section:last-child { margin-bottom: 8px; }
.legal-section h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.legal-section h3 {
  margin: 28px 0 12px;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
}
.legal-section em {
  font-style: normal;
  font-weight: 600;
  color: var(--text-3);
}
.legal-section p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text);
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  margin: 0;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text);
}
.legal-section ul li { margin-bottom: 10px; }
.legal-section ul li:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--ink); }
.legal-section a { color: var(--coral-deep); font-weight: 600; text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-note { color: var(--muted-2); }

.contact-card {
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 26px 28px;
  background: var(--bg-soft);
}
.contact-card .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-card .attn { font-size: 15px; color: var(--text-4); margin-bottom: 4px; }
.contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--coral-deep);
  text-decoration: none;
  margin-top: 8px;
}
.contact-card a:hover { text-decoration: underline; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  :root { --pad-x: 40px; }
  .hero h1 { font-size: 50px; }
}

@media (max-width: 900px) {
  .hero { padding: 60px var(--pad-x) 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .motif-inner { max-width: 400px; }
  .hero h1 { font-size: 46px; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 68px var(--pad-x); }

  /* Legal: drop the sticky TOC, stack content */
  .legal-body { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; top: auto; }
  .legal-band h1 { font-size: 38px; }
}

@media (max-width: 720px) {
  :root { --pad-x: 22px; }
  .site-header .nav-inner { justify-content: center; }
  .brand { margin-right: auto; }
  .nav-links { gap: 20px; }
  .nav-link { font-size: 14px; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 17px; }
  .platforms-inner { gap: 22px; }
  .cta { padding: 48px 26px; }
  .cta h2, .section-title, .features-head .section-title { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal-left { flex-basis: 100%; }
}

@media (max-width: 520px) {
  .site-header .nav-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .brand { justify-content: center; margin-right: 0; }
  .nav-links { justify-content: center; gap: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { justify-content: center; }
  .hero-trust { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
