/* =================================================================
   Amplify Humans — Business Intelligence for the Operator
   Design system: charcoal + amplifier-lime, modern operator-tech.
   References: Workflow (rhythm/cards), Modal (single-accent-word),
   Metaview (testimonial proof). One loud accent, used sparingly.
   ================================================================= */

:root {
  /* — Core palette (light / signature-green) — */
  --bg:        #F7F7F4;   /* main background */
  --bg-2:      #FFFFFF;   /* alternate section bands */
  --surface:   #FFFFFF;   /* cards / business-card base */
  --surface-2: #EAF2DD;   /* subtle accent surface */
  --line:      #D9D9D4;   /* borders */
  --line-soft: rgba(17, 17, 17, 0.07);

  --text:      #111111;   /* primary text */
  --muted:     #4A4A4A;   /* body text — 8.3:1 */
  --muted-2:   #6E6E68;   /* labels, meta — 4.8:1, passes WCAG AA */
  --muted-3:   #80807A;   /* faintest meta (footer legal) — 3.7:1 */

  --accent:    #5E8F1D;   /* signature green */
  --accent-ink:#FFFFFF;
  --accent-dim:#EAF2DD;
  --accent-line:rgba(94, 143, 29, 0.35);

  /* — Type families — */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* — Type scale (modular, ~1.2–1.33 ratio; fluid clamp() for display) —
     One ramp drives the whole page. Snap every font-size to a step so the
     hierarchy reads cleanly instead of muddying across a dozen near values. */
  --fs-xs:   0.75rem;                          /* 12px — mono micro-labels, tags, legal  */
  --fs-sm:   0.875rem;                         /* 14px — nav, meta, captions, fine detail */
  --fs-base: 1.0625rem;                        /* 17px — all body copy                    */
  --fs-lead: clamp(1.125rem, 0.95rem + 0.7vw, 1.25rem);  /* intros / leads               */
  --fs-h4:   1.3125rem;                        /* 21px — card + partner titles            */
  --fs-h3:   clamp(1.4rem, 1.1rem + 1.4vw, 1.85rem);     /* emphasis subheads            */
  --fs-h2:   clamp(2rem, 1.3rem + 3vw, 3.1rem);          /* section titles               */
  --fs-h1:   clamp(2.6rem, 1.2rem + 6vw, 5rem);          /* hero                         */

  /* — Spacing scale — */
  --space-2xs: 0.4rem;
  --space-xs:  0.7rem;
  --space-sm:  1.1rem;
  --space-md:  1.6rem;
  --space-lg:  2.4rem;
  --space-xl:  clamp(2.5rem, 1.6rem + 3vw, 3.5rem);

  /* — Spacing / layout — */
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(2.25rem, 5vw, 4.25rem);
  --radius: 6px;
  --radius-lg: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
}

/* Paragraphs get orphan/widow control; headings get balanced line breaks so
   titles never strand a single word on the last line. */
p { text-wrap: pretty; }

/* Atmospheric lime wash at top — the only large use of the accent. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 70vh;
  background: radial-gradient(110% 70% at 50% -25%, rgba(94, 143, 29, 0.08), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* Modal technique: one word per headline carries the accent. */
.accent { color: var(--accent); }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* — Shared section primitives — */
.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--line-soft); }

/* Lime is reserved for CTAs, one accent word per headline, and the nav mark.
   Eyebrows and other section labels stay quiet (muted), so the accent keeps
   its signal value. */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--muted-2);
  border-radius: 2px;
}

.section__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 20ch;
  text-wrap: balance;
}
.muted-title { color: var(--muted-2); }

.section__intro {
  margin-top: var(--space-md);
  max-width: 60ch;
  color: var(--muted);
  font-size: var(--fs-lead);
}

/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 0.72em 1.3em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 0.95em 1.7em; font-size: 1rem; }

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover {
  background: #4B7316;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -8px rgba(94, 143, 29, 0.45);
}

.btn--ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.98rem;
  transition: gap 0.25s var(--ease);
}
.link-arrow:hover { gap: 0.8em; }

/* ============================ NAV ============================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(247, 247, 244, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo { height: 26px; width: auto; display: block; }
.nav__links { display: flex; gap: 1.9rem; margin-left: auto; }
.nav__links a { color: var(--muted-2); font-size: var(--fs-sm); font-weight: 500; transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 0.4rem; }

.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; margin-left: auto; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); margin: 5px auto; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile[hidden] { display: none; }
.nav__mobile {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1rem var(--gutter) 1.6rem;
  background: rgba(247, 247, 244, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__mobile a { color: var(--muted); padding: 0.7rem 0; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.nav__mobile a.btn { color: var(--accent-ink); border-bottom: 0; margin-top: 0.8rem; justify-content: center; }

/* ============================ HERO ============================ */
.hero { padding-top: clamp(8rem, 18vw, 12rem); padding-bottom: clamp(4rem, 9vw, 7rem); position: relative; }
.hero__inner { max-width: 1000px; }
.hero__title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.hero__sub {
  max-width: 56ch;
  font-size: var(--fs-lead);
  color: var(--muted);
  margin-bottom: var(--space-lg);
}
/* Buttons share the herofig grid: same columns, gap and max-width, so the two
   CTAs line up exactly above the Today / With Operator Intelligence panels and
   all four elements are equal width. */
.hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 760px; }
.hero__actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
@media (min-width: 680px) {
  .hero__actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
}
.hero__rule { height: 1px; background: var(--line-soft); margin-top: clamp(4rem, 9vw, 7rem); }

/* ========================= PROBLEM ========================= */
.problem__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.problem__lede p { font-size: var(--fs-lead); color: var(--text); max-width: 44ch; }
.problem__connector { margin-top: var(--space-sm); color: var(--muted); font-size: var(--fs-base) !important; }
.painlist { list-style: none; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.painlist li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem 1.5rem; background: var(--bg); transition: background-color 0.3s var(--ease); }
.painlist li:hover { background: var(--surface); }
.painlist__no { font-family: var(--mono); font-weight: 500; font-size: var(--fs-sm); color: var(--muted-2); padding-top: 0.28rem; min-width: 1.8rem; }
.painlist p { color: var(--muted); }
.problem__close {
  margin-top: var(--space-xl);
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 860px) {
  .problem__grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}

/* ======================== WHAT WE DO ======================== */
.wedge-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: clamp(2.8rem, 5vw, 4rem);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.wedge { background: var(--bg); padding: clamp(1.8rem, 3vw, 2.6rem); transition: background-color 0.3s var(--ease); position: relative; }
.wedge::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: var(--accent); transition: width 0.4s var(--ease);
}
.wedge:hover { background: var(--surface); }
.wedge:hover::before { width: 100%; }
.wedge__no { font-family: var(--mono); color: var(--muted-2); font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.1em; display: block; margin-bottom: var(--space-sm); }
.wedge__title { font-family: var(--sans); font-weight: 700; font-size: var(--fs-h4); letter-spacing: -0.02em; margin-bottom: var(--space-xs); }
/* Scannable outcome kicker — lets a buyer match service to problem at a glance. */
.wedge__kicker { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.01em; color: var(--muted); margin-bottom: var(--space-sm); }
.wedge__kicker b { color: var(--text); font-weight: 500; }
.wedge p { color: var(--muted); font-size: var(--fs-base); }
.wedge__result { margin-top: var(--space-sm); color: var(--text) !important; font-size: var(--fs-sm) !important; padding-top: var(--space-sm); border-top: 1px solid var(--line-soft); }
.wedges__close {
  margin-top: var(--space-xl); max-width: 70ch; color: var(--muted);
  font-size: var(--fs-lead);
}
.wedges__close em { color: var(--text); font-style: normal; font-weight: 600; }

@media (min-width: 920px) { .wedge-grid { grid-template-columns: repeat(3, 1fr); } }

/* ======================= THE ASSESSMENT ======================= */
.assessment { background: var(--bg-2); }
.assessment__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 920px;
  margin-inline: auto;
  box-shadow: 0 30px 70px -40px rgba(17, 17, 17, 0.18);
  position: relative;
  overflow: hidden;
}
.assessment__card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.assessment__body { margin-top: var(--space-md); display: grid; gap: var(--space-sm); }
.assessment__body p { color: var(--muted); max-width: 64ch; }
.checklist { list-style: none; margin-top: var(--space-lg); display: grid; gap: 0.2rem; }
.checklist li { display: flex; gap: 1rem; align-items: flex-start; padding: 0.95rem 0; border-bottom: 1px solid var(--line-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist__arrow { color: var(--accent); font-weight: 700; padding-top: 0.05rem; }
.checklist strong { color: var(--text); font-weight: 600; }
.checklist div { color: var(--muted); }
.assessment__outcome {
  margin-top: var(--space-lg); font-family: var(--sans); font-weight: 600; font-size: var(--fs-h3);
  line-height: 1.45; color: var(--text); letter-spacing: -0.015em; text-wrap: balance;
}
.assessment__outcome span { display: block; color: var(--muted); font-weight: 500; font-size: 0.78em; margin-top: var(--space-2xs); }
.assessment__logistics { margin-top: var(--space-md); color: var(--muted-2); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.01em; }
.assessment__card .btn { margin-top: 2rem; }

/* ===================== HERO SIGNAL DIAGRAM ===================== */
/* Makes the abstract value prop concrete: scattered signals -> unified clarity. */
.herofig {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  align-items: stretch;
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  max-width: 760px;
}
.herofig__panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem 1.1rem;
}
.herofig__panel--after { border-color: var(--accent-line); }
.herofig__label {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: var(--space-xs);
}
.herofig__panel--after .herofig__label { color: var(--accent); }
.herofig__svg { width: 100%; height: 72px; display: block; }
.herofig__caption { margin-top: var(--space-xs); font-size: var(--fs-sm); color: var(--muted); }
.herofig__panel--after .herofig__caption { color: var(--text); }
.herofig__seg { stroke: var(--muted-2); stroke-width: 2; stroke-linecap: round; opacity: 0.65; }
.herofig__dot { fill: var(--muted-2); opacity: 0.8; }
.herofig__conv { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0.85; }
.herofig__node { fill: var(--accent); }

@media (min-width: 680px) {
  .herofig { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

/* ==================== STRATEGIC PARTNERSHIPS ==================== */
.partners { background: var(--bg-2); }   /* distinct trust layer, set apart from About */
.partner-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: clamp(2.8rem, 5vw, 4rem); }
.partner {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.partner:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.partner__head { margin-bottom: 1.3rem; }
.partner__name { font-family: var(--sans); font-weight: 700; font-size: var(--fs-h4); letter-spacing: -0.02em; }
.partner__url { color: var(--accent); font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.01em; }
.partner__url:hover { text-decoration: underline; text-underline-offset: 3px; }
.partner p { color: var(--muted); font-size: var(--fs-base); margin-top: var(--space-xs); }
.partner p strong { color: var(--text); font-weight: 600; }
.partner__tags { margin-top: var(--space-sm) !important; padding-top: var(--space-sm); border-top: 1px solid var(--line-soft); color: var(--muted-2) !important; font-family: var(--mono); font-size: var(--fs-xs) !important; letter-spacing: 0.02em; }
.partners__close { margin-top: clamp(2.2rem, 4vw, 3rem); color: var(--muted); max-width: 56ch; }

@media (min-width: 820px) { .partner-grid { grid-template-columns: 1fr 1fr; } }

/* ========================== ABOUT ========================== */
.about__inner { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.about__body p { color: var(--muted); margin-bottom: var(--space-sm); max-width: 62ch; }
.about__body .link-arrow { margin-top: 0.8rem; }
@media (min-width: 900px) {
  .about__inner { grid-template-columns: 0.9fr 1.1fr; }
  .about__col .section__title { max-width: 16ch; }
}

/* ========================= FINAL CTA ========================= */
.final { text-align: center; background: var(--bg-2); }
.final__inner { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.final__title {
  font-family: var(--sans); font-weight: 800;
  font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.03em;
  max-width: 24ch; text-wrap: balance;
}
.final__alt { color: var(--muted); font-size: var(--fs-sm); }
.final__alt a { color: var(--accent); }
.final__alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ========================== FOOTER ========================== */
.footer { border-top: 1px solid var(--line-soft); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer__inner { display: grid; gap: 1.8rem; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.footer__logo { height: 30px; width: auto; display: block; }
.footer__tag { color: var(--muted-2); font-family: var(--mono); font-size: var(--fs-xs); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__links a { color: var(--muted-2); font-size: var(--fs-sm); transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--muted-3); font-family: var(--mono); font-size: var(--fs-xs); }

@media (min-width: 760px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__links { grid-column: 1 / -1; order: 3; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
  .footer__copy { text-align: right; }
}

/* ====================== MOTION / REVEAL ====================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .partner, .wedge, .link-arrow { transition: none !important; }
}

/* ===================== RESPONSIVE NAV ===================== */
@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

/* On narrow screens the long CTA labels can't stay on one line — let them wrap
   and stretch full-width so the buttons read as intentional, no horizontal scroll. */
@media (max-width: 560px) {
  .btn--lg { white-space: normal; text-align: center; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  /* keep the wide wordmark from crowding the menu toggle on small screens */
  .nav__logo { height: 22px; max-width: 62vw; }
}
@media (min-width: 821px) {
  .nav__mobile, .nav__toggle { display: none !important; }
}
