/* ===================================================================
   THE PROJECT ANALYST CO — Design System
   Palette source: https://coolors.co/palette/002029-00303d-004052-00607a-a8e2f0
   =================================================================== */

:root {
  /* --- Brand palette (exact, from client's coolors link) --- */
  --ink:        #002029; /* deepest — primary background */
  --ink-2:      #00303D; /* secondary dark surface */
  --surface:    #004052; /* card / border surface on dark */
  --accent-deep:#00607A; /* gradient start, primary interactive color */
  --accent-light:#A8E2F0;/* gradient end, highlight, particle color */

  /* --- Derived neutral (light section background) ---
     Not in the original 5, but distilled from accent-light so light
     sections stay inside the same color family instead of a random gray. */
  --paper:      #F4FAFC;
  --paper-card: #FFFFFF;

  /* --- Text --- */
  --text-on-dark:        #EAF6FA;
  --text-muted-on-dark:  rgba(73, 109, 121, 68);
  --text-on-light:       #002029;
  --text-muted-on-light: rgba(0, 32, 41, 0.64);

  /* --- Type --- */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* --- Geometry --- */
  --radius-pill: 999px;
  --radius-card: 18px;
  --max-width: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.no-js .cta-primary { background: linear-gradient(120deg, var(--accent-deep), var(--accent-light)); }

body {
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent-light); color: var(--ink); }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 2;
}

section { padding: clamp(64px, 10vw, 128px) 0; position: relative; z-index: 2; }
.section-light { background: var(--paper); color: var(--text-on-light); }
.section-light .eyebrow { color: var(--accent-deep); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  display: inline-block;
  margin-bottom: 20px;
}

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

h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); max-width: 16ch; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 18ch; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted-on-dark);
  max-width: 52ch;
  margin-top: 18px;
}
.section-light p.lede { color: var(--text-muted-on-light); }

.mono-stat {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(4rem, 14vw, 4rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--accent-light), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(0, 32, 41, 0.72);
  border-bottom: 1px solid rgba(168, 226, 240, 0.12);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo-mark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
  flex-shrink: 0;
}
.nav-links { display: none; align-items: center; gap: 32px; }
@media (min-width: 720px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted-on-dark);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-on-dark); }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text-on-dark); border-radius: 2px; }
@media (min-width: 720px) { .nav-toggle { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 8px var(--gutter) 24px;
}
.mobile-menu.open { display: flex; }
@media (min-width: 720px) { .mobile-menu { display: none !important; } }

/* ---------- Buttons ---------- */
.cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--accent-light);
  isolation: isolate;
  overflow: hidden;
  transition: background 0.55s ease, border-color 0.4s ease, transform 0.15s ease, box-shadow 0.3s ease;
}
.cta-primary span { position: relative; z-index: 2; color: inherit; }
.cta-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent-light) 120%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  opacity: 0;
  transition: opacity 0.5s ease, background-position 0.6s ease;
  z-index: 1;
}
.cta-primary.formed {
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(168, 226, 240, 0.45);
}
.cta-primary.formed::before { opacity: 1; }
.cta-primary.formed:hover::before { background-position: 100% 50%; }
.cta-primary:active { transform: scale(0.97); }
.cta-primary:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

/* small orbiting hover echo dots */
.cta-primary .echo-dot {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--paper-card);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.cta-primary.formed:hover .echo-dot { animation: orbit 900ms ease-out forwards; }
.cta-primary .echo-dot:nth-child(2) { animation-delay: 60ms; }
.cta-primary .echo-dot:nth-child(3) { animation-delay: 120ms; }
@keyframes orbit {
  0%   { opacity: 0; transform: translate(0,0) scale(0.6); }
  20%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--ox, 18px), var(--oy, -14px)) scale(1); }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-muted-on-dark);
  border-bottom: 1px solid rgba(234, 246, 250, 0.28);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover { color: var(--text-on-dark); border-color: var(--text-on-dark); }

/* CTA overlay canvas wrapper */
.cta-wrap { position: relative; display: inline-block; }
.cta-wrap canvas.formation-canvas {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  z-index: 5;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(80px, 12vw, 140px); }
.hero .actions { display: flex; align-items: center; gap: 22px; margin-top: 38px; flex-wrap: wrap; }

/* ---------- How it works ---------- */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 52px; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(168, 226, 240, 0.14);
}
.step:last-child { border-bottom: 1px solid rgba(168, 226, 240, 0.14); }
.step-num { font-family: var(--font-mono); color: var(--accent-light); font-size: 1.1rem; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted-on-dark); max-width: 56ch; }

/* ---------- What you get ---------- */
.deliverables { margin-top: 40px; display: flex; flex-direction: column; }
.deliverables li {
  padding: 18px 0;
  border-top: 1px solid rgba(0, 32, 41, 0.1);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.deliverables li:last-child { border-bottom: 1px solid rgba(0, 32, 41, 0.1); }
.deliverables .tick { font-family: var(--font-mono); color: var(--accent-deep); }

/* ---------- Offer teaser ---------- */
.offer-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 720px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
.offer-card {
  border: 1px solid rgba(168, 226, 240, 0.18);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.offer-card:hover { border-color: var(--accent-light); transform: translateY(-3px); }
.offer-card .price { margin: 14px 0 6px; }
.offer-card .timeline { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted-on-dark); }
.offer-card a.arrow { display: inline-block; margin-top: 18px; font-size: 0.9rem; }

/* ---------- Footer CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: none; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid rgba(168, 226, 240, 0.12);
  padding: 48px 0;
}
footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
footer .foot-links { display: flex; gap: 24px; }
footer .foot-links a { color: var(--text-muted-on-dark); font-size: 0.88rem; }
footer small { color: var(--text-muted-on-dark); font-size: 0.8rem; }

/* ===================================================================
   PRICING PAGE
   =================================================================== */
.pricing-header { text-align: center; padding-bottom: 20px; }
.pricing-header .eyebrow, .pricing-header p.lede { margin-left: auto; margin-right: auto; }

.pricing-grid {
  display: grid;
  gap: 24px;
  margin-top: 56px;
}
@media (min-width: 880px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

.price-card {
  background: var(--ink-2);
  border: 1px solid rgba(168, 226, 240, 0.16);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-card.featured {
  background: linear-gradient(165deg, var(--surface), var(--ink-2));
  border: 1px solid var(--accent-light);
  position: relative;
}
.price-card.featured::after {
  content: "Most complete";
  position: absolute;
  top: -12px; left: 30px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.price-card .badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.price-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.price-card ul li { font-size: 0.94rem; color: var(--text-muted-on-dark); display: flex; gap: 10px; }
.price-card ul li::before { content: "—"; color: var(--accent-light); flex-shrink: 0; }
.price-card .cta-wrap { margin-top: 22px; align-self: flex-start; }
.price-card .rush-note {
  font-size: 0.8rem;
  color: var(--text-muted-on-dark);
  border-top: 1px dashed rgba(168, 226, 240, 0.2);
  padding-top: 12px;
  margin-top: 4px;
}

.addon-strip {
  margin-top: 30px;
  border: 1px dashed rgba(168, 226, 240, 0.25);
  border-radius: var(--radius-card);
  padding: 24px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.addon-strip .price { font-size: 1.4rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 40px; }
.faq-item {
  border-top: 1px solid rgba(0, 32, 41, 0.12);
}
.faq-item:last-child { border-bottom: 1px solid rgba(0, 32, 41, 0.12); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.faq-q .plus { font-family: var(--font-mono); font-size: 1.2rem; transition: transform 0.25s ease; color: var(--accent-deep); }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p { padding-bottom: 22px; color: var(--text-muted-on-light); max-width: 62ch; }
.faq-item.open .faq-a { max-height: 220px; }

/* ---------- Contact / lead form (modal) ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 32, 41, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--paper);
  color: var(--text-on-light);
  border-radius: var(--radius-card);
  padding: 36px;
  max-width: 460px;
  width: 100%;
  position: relative;
}
.modal h3 { margin-bottom: 6px; }
.modal p.lede { margin-top: 4px; margin-bottom: 20px; font-size: 0.95rem; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  font-size: 1.1rem;
  color: var(--text-muted-on-light);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; margin-bottom: 6px; color: var(--text-muted-on-light); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 32, 41, 0.18);
  background: var(--paper-card);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-on-light);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-deep); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 90px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; } /* honeypot, hidden from humans */
.form-status { font-size: 0.85rem; margin-top: 10px; min-height: 18px; }
.form-status.success { color: #0d7a4f; }
.form-status.error { color: #b3261e; }
.modal .cta-primary { width: 100%; margin-top: 6px; }

/* ---------- Ambient particle canvas ---------- */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
