/* ============================================================
   Advisor Task Automation — styles
   Palette: navy / slate / off-white / muted gold + green accent
   ============================================================ */

:root {
  --navy-900: #0a1730;
  --navy-800: #0d1f3c;
  --navy-700: #14294e;
  --navy-600: #1d3560;
  --slate-600: #46586e;
  --slate-500: #5c6e84;
  --slate-300: #b9c4d1;
  --offwhite: #f7f6f2;
  --white: #ffffff;
  --gold: #c9a45c;
  --gold-deep: #a8843d;
  --green: #3e7c59;
  --green-soft: #e6f0ea;
  --line: #e5e2da;

  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(13, 31, 60, 0.08);
  --shadow-md: 0 6px 24px rgba(13, 31, 60, 0.10);
  --shadow-lg: 0 18px 50px rgba(13, 31, 60, 0.18);

  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--navy-800);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }

p { color: var(--slate-600); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

.section { padding: 96px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { color: var(--navy-800); margin: 10px 0 16px; }
.section-lede { font-size: 1.12rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}

.text-accent { color: var(--gold-deep); }

.accent-underline {
  background-image: linear-gradient(transparent 68%, rgba(201, 164, 92, 0.42) 68%);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #d6b26b; box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-ghost:hover { background: var(--navy-800); color: var(--offwhite); }
.section-dark .btn-ghost, .cta-section .btn-ghost { border-color: var(--slate-300); color: var(--offwhite); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-lg { padding: 17px 38px; font-size: 1.08rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: inline-flex; border-radius: 9px; overflow: hidden; box-shadow: var(--shadow-sm); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; color: var(--navy-800); letter-spacing: -0.01em; }
.brand-name em { font-style: normal; color: var(--gold-deep); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-600);
  transition: color 0.15s ease;
}
.site-nav a:not(.btn):hover { color: var(--navy-800); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 100px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 85% 8%, rgba(201, 164, 92, 0.13), transparent 60%),
    radial-gradient(700px 420px at 8% 90%, rgba(62, 124, 89, 0.10), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { color: var(--navy-800); margin: 14px 0 20px; }
.lede { font-size: 1.16rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-footnote { margin-top: 18px; font-size: 0.9rem; color: var(--slate-500); }

/* ---------- Pipeline demo card ---------- */
.pipeline-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pipeline-head {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px;
  background: var(--navy-800);
  color: var(--slate-300);
  font-size: 0.82rem;
  font-family: var(--font-display);
}
.pipeline-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-600); }
.pipeline-title { margin-left: 8px; font-weight: 600; }
.pipeline-live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #7fd4a3; font-weight: 700; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4caf7d; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(76,175,125,0.5);} 50% { box-shadow: 0 0 0 6px rgba(76,175,125,0);} }

.pipeline { list-style: none; padding: 12px 18px 8px; position: relative; }
.pipe-step {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  opacity: 0.38;
  transform: translateX(-4px);
  transition: opacity 0.45s ease, transform 0.45s ease, background 0.45s ease;
  position: relative;
}
.pipe-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 30px; top: 100%;
  width: 2px; height: 8px;
  background: var(--line);
}
.pipe-step.active { opacity: 1; transform: translateX(0); background: var(--green-soft); }
.pipe-step.done { opacity: 1; transform: translateX(0); }

.pipe-icon {
  flex: 0 0 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--offwhite);
  border: 1px solid var(--line);
  color: var(--navy-700);
}
.pipe-step.active .pipe-icon, .pipe-step.done .pipe-icon { background: var(--navy-800); border-color: var(--navy-800); color: var(--gold); }
.pipe-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.pipe-text { display: flex; flex-direction: column; line-height: 1.35; }
.pipe-text strong { font-family: var(--font-display); font-size: 0.95rem; color: var(--navy-800); }
.pipe-text small { color: var(--slate-500); font-size: 0.8rem; }

.pipe-check {
  margin-left: auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  background: var(--line); color: transparent;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.pipe-step.done .pipe-check, .pipe-step.active .pipe-check { background: var(--green); color: #fff; transform: scale(1.08); }

.pipeline-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--slate-500);
  background: #fbfaf7;
}
.pipeline-foot strong { color: var(--green); }

/* ---------- Tool strip ---------- */
.toolstrip { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.toolstrip-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--slate-500);
  margin-bottom: 16px;
}
.tool-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.tool-list li {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--slate-600);
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--offwhite);
}

/* ---------- Cards / grids ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { color: var(--navy-800); margin-bottom: 10px; }
.card p { font-size: 0.97rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Pain */
.pain-icon { font-size: 1.7rem; display: block; margin-bottom: 14px; }
.pain-closer { text-align: center; margin-top: 48px; font-size: 1.15rem; color: var(--slate-600); }
.pain-closer strong { color: var(--navy-800); }

/* Services (dark section) */
.section-dark { background: var(--navy-800); }
.section-dark .section-head h2, .section-dark h2 { color: var(--offwhite); }
.section-dark .section-lede, .section-dark p { color: var(--slate-300); }
.section-dark .eyebrow { color: var(--gold); }

.service-card { background: var(--navy-700); border-color: var(--navy-600); }
.service-card:hover { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35); }
.service-card h3 { color: var(--offwhite); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(201, 164, 92, 0.14);
  color: var(--gold);
  margin-bottom: 18px;
}
.service-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  background: var(--navy-800); color: var(--gold);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; }
.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -19px; top: 44px;
  color: var(--gold-deep);
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 1;
}

/* ---------- Examples ---------- */
.section-tint { background: #efede7; }
.example-card h3 { font-size: 1.08rem; }
.flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 18px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
}
.flow span:not(.arrow) {
  background: var(--offwhite);
  border: 1px solid var(--line);
  color: var(--navy-700);
  border-radius: 999px;
  padding: 4px 11px;
}
.flow .arrow { color: var(--gold-deep); }
.example-cta { background: var(--navy-800); border-color: var(--navy-800); display: flex; flex-direction: column; align-items: flex-start; }
.example-cta h3 { color: var(--offwhite); }
.example-cta p { color: var(--slate-300); flex: 1; }
.example-cta .btn { margin-top: 16px; }

/* ---------- Packages ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured {
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.price-card.featured:hover { transform: translateY(-10px); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy-900);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 14px; border-radius: 999px;
  white-space: nowrap;
}
.price-tag {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold-deep); margin: 4px 0 12px;
}
.price-desc { min-height: 3.2em; }
.price-list { margin: 20px 0 26px; flex: 1; }
.price-list li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 0.93rem;
  color: var(--slate-600);
  border-bottom: 1px dashed var(--line);
}
.price-list li:last-child { border-bottom: 0; }
.price-list li::before {
  content: "✓";
  position: absolute; left: 2px;
  color: var(--green);
  font-weight: 800;
}

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.trust-copy h2 { margin: 10px 0 16px; }
.trust-list { margin-top: 24px; }
.trust-list li { display: flex; gap: 12px; padding: 8px 0; color: var(--slate-300); font-size: 1rem; }
.tick {
  flex: 0 0 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(62, 124, 89, 0.35);
  color: #8fd7ae;
  font-size: 0.8rem; font-weight: 800;
}
.trust-note {
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.trust-note h3 { color: var(--gold); margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 52px 19px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-800);
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 500;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 24px 20px; font-size: 0.97rem; }
.faq-item summary:hover { background: #fbfaf7; }

/* ---------- CTA ---------- */
.cta-section {
  background:
    radial-gradient(700px 380px at 50% -10%, rgba(201, 164, 92, 0.18), transparent 65%),
    var(--navy-900);
  text-align: center;
}
.cta-section h2 { color: var(--offwhite); margin-bottom: 18px; }
.cta-section .section-lede { color: var(--slate-300); margin-bottom: 34px; }
.cta-sub { margin-top: 20px; font-size: 0.92rem; color: var(--slate-300); }
.cta-sub a { color: var(--gold); font-weight: 600; }
.cta-sub a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); padding: 56px 0 0; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--navy-700);
}
.footer-brand .brand-name { color: var(--offwhite); font-size: 1.15rem; }
.footer-brand p { margin-top: 10px; color: var(--slate-500); max-width: 34em; font-size: 0.93rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { color: var(--slate-300); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { padding: 22px 24px; }
.footer-legal p { color: var(--slate-500); font-size: 0.82rem; text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pipe-step { transition: none; }
  .pulse { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .card-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .trust-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-card.featured { transform: none; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .card-grid, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
  .hero-actions .btn { width: 100%; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--offwhite);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 10px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
