/* FlowLeads — flowleadsco.com
   Layout language modelled on the Optimizely glossary article:
   asymmetric narrow reading column, oversized display type, marker-highlighted
   key phrases, icon bullets, tinted card grid, oversized wordmark footer. */

/* ---------------------------------------------------------------- tokens */
:root {
  --ink:        #10151a;
  --ink-2:      #47525c;
  --ink-3:      #5b656e;
  --paper:      #ffffff;
  --tint:       #f2f5f0;
  --tint-2:     #e6ece1;
  --line:       #e3e7e1;
  --line-2:     #cdd4c9;
  --accent:     #0b6e5f;
  --accent-dk:  #06463c;
  --marker:     #cdeb6b;
  --warn:       #8a5a00;
  --warn-bg:    #fdf6e3;

  --col:        660px;   /* reading column */
  --wrap:       1240px;

  --f-sans: "Helvetica Neue", Helvetica, Inter, "Segoe UI", Roboto,
            system-ui, -apple-system, Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* --------------------------------------------------------------- shell */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.col  { max-width: var(--col); }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  height: 68px; display: flex; align-items: center; gap: 32px;
}
.brand {
  font-weight: 800; font-size: 21px; letter-spacing: -.035em;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav__links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav__links a:not(.btn) {
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--ink-2); letter-spacing: -.01em;
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn)[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--marker); color: var(--ink); }
.btn--light:hover { background: #bcdc55; }

/* ----------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 5px 11px; border-radius: 4px;
  background: var(--tint); border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-2);
}
.chip--accent { background: var(--marker); border-color: #b9d955; color: var(--ink); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, var(--col)) 240px;
  gap: 64px; align-items: start;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 62px); line-height: 1.03;
  letter-spacing: -.042em; font-weight: 800; margin: 22px 0 0;
}
.hero__lede {
  font-size: 21px; line-height: 1.55; color: var(--ink-2);
  margin: 24px 0 0; max-width: 62ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.factcard {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 20px; background: var(--tint); position: sticky; top: 96px;
}
.factcard h2 {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px;
}
.factcard dl { margin: 0; display: grid; gap: 12px; }
.factcard dt {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
}
.factcard dd {
  margin: 2px 0 0; font-size: 14px; font-weight: 600;
  line-height: 1.4; letter-spacing: -.01em;
}

/* ---------------------------------------------------------------- article */
.article { padding: 72px 0 24px; }
.article h2 {
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1;
  letter-spacing: -.035em; font-weight: 800;
  margin: 76px 0 22px; max-width: 18ch;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 21px; line-height: 1.3; letter-spacing: -.02em;
  font-weight: 700; margin: 40px 0 12px;
}
.article h4 {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); margin: 34px 0 10px;
}
.article p { margin: 0 0 20px; max-width: 68ch; }
.article p.lede { font-size: 20px; color: var(--ink-2); }
.article a:not(.btn):not(.card) {
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--line-2); text-underline-offset: 3px;
}
.article a:not(.btn):not(.card):hover { text-decoration-color: var(--accent); color: var(--accent); }
.article strong { font-weight: 700; }

/* marker highlight, the Optimizely heading treatment */
.mark {
  background: var(--marker); padding: 0 .12em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* icon bullets */
.ilist { list-style: none; padding: 0; margin: 24px 0 28px; max-width: 68ch; }
.ilist > li { position: relative; padding-left: 34px; margin-bottom: 18px; }
.ilist > li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--marker); border: 1.5px solid var(--ink);
}
.ilist b, .ilist strong { font-weight: 700; }

/* numbered steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 28px; max-width: 68ch; }
.steps > li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 24px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* plain list */
.article ul:not(.ilist):not(.chips):not(.fgrid) { max-width: 68ch; padding-left: 20px; margin: 0 0 22px; }
.article ul:not(.ilist):not(.chips):not(.fgrid) li { margin-bottom: 10px; }

/* ------------------------------------------------------------------ note */
.note {
  border-left: 3px solid var(--accent); background: var(--tint);
  padding: 20px 24px; margin: 30px 0; max-width: 68ch; border-radius: 0 8px 8px 0;
}
.note p:last-child { margin-bottom: 0; }
.note__label {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.note--warn { border-left-color: var(--warn); background: var(--warn-bg); }
.note--warn .note__label { color: var(--warn); }

.quote {
  font-family: var(--f-mono); font-size: 15px; line-height: 1.65;
  background: var(--ink); color: #e9efe6; padding: 20px 24px;
  border-radius: 8px; margin: 26px 0; max-width: 68ch; overflow-x: auto;
}

/* ----------------------------------------------------------------- table */
.tablewrap { overflow-x: auto; margin: 28px 0 32px; max-width: 100%; }
table.t caption.tcap {
  caption-side: top; text-align: left; font-size: 13px;
  color: var(--ink-3); padding-bottom: 10px; line-height: 1.5;
}
table.t { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
table.t th, table.t td {
  text-align: left; padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
table.t th {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; border-bottom-color: var(--line-2);
}
table.t td:first-child { font-weight: 650; padding-right: 24px; white-space: nowrap; }
table.t td.wrap-cell { white-space: normal; font-weight: 400; }

/* ------------------------------------------------------------- band strip */
.bands { margin: 28px 0 32px; max-width: 100%; border-top: 1px solid var(--line-2); }
.band { display: grid; grid-template-columns: 44px 1fr; gap: 18px;
        padding: 18px 0; border-bottom: 1px solid var(--line); }
.band__n {
  font-size: 26px; font-weight: 800; letter-spacing: -.04em;
  color: var(--ink-3); line-height: 1;
}
.band__t { font-weight: 700; margin: 0 0 5px; letter-spacing: -.015em; }
.band__d { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.band:first-child .band__n { color: var(--accent); }

/* ------------------------------------------------------------------- CTA */
.cta { background: var(--ink); color: #fff; margin-top: 88px; }
.cta__in { padding: 76px 0 80px; }
.cta h2 {
  font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05;
  letter-spacing: -.04em; font-weight: 800; margin: 0 0 18px; max-width: 16ch;
}
.cta p { color: #b3bdb4; font-size: 19px; max-width: 56ch; margin: 0 0 32px; }
.cta .btn--ghost { border-color: #3d4a3f; color: #fff; }
.cta .btn--ghost:hover { border-color: #fff; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------- card grid */
.more { background: var(--tint); padding: 80px 0 88px; }
.more h2 {
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -.038em;
  font-weight: 800; margin: 0 0 40px;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 26px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card__k {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px;
}
.card__t { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; }
.card__d { font-size: 15px; color: var(--ink-2); margin: 0 0 16px; line-height: 1.55; }
.card__go { font-size: 14px; font-weight: 650; color: var(--accent); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--tint-2); padding: 72px 0 0; overflow: hidden; }
.foot__cols {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; padding-bottom: 56px;
}
.foot h3 {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 11px; }
.foot a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot__legal {
  border-top: 1px solid var(--line-2); padding: 24px 0 28px;
  font-size: 13px; color: var(--ink-3); line-height: 1.6; max-width: 82ch;
}
.foot__mark {
  font-size: clamp(64px, 17vw, 230px); font-weight: 800;
  letter-spacing: -.055em; line-height: .82; color: var(--line-2);
  margin: 0; padding-bottom: 18px; user-select: none;
}

/* ----------------------------------------------------------------- forms */
.form { max-width: 520px; margin-top: 32px; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--line-2); border-radius: 8px;
  background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { min-height: 130px; resize: vertical; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .factcard { position: static; max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap, .nav__in { padding: 0 20px; }
  .nav__in { height: 58px; gap: 14px; }
  .brand { font-size: 19px; flex: 0 0 auto; }
  /* links become a single scrollable row rather than wrapping into the brand */
  .nav__links {
    flex-wrap: nowrap; white-space: nowrap; min-width: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 17px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent 100%);
            mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent 100%);
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a:not(.btn) { font-size: 14px; flex: 0 0 auto; }
  .nav__links .btn { display: none; }
  .hero { padding: 40px 0 52px; }
  .hero__lede { font-size: 19px; }
  .article { padding: 52px 0 16px; }
  .article h2 { margin-top: 56px; }
  .cards { grid-template-columns: 1fr; }
  .cta__in { padding: 56px 0 60px; }
  .more { padding: 56px 0 64px; }
}

/* --------------------------------------------------------------- utility */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink);
  color: #fff; padding: 12px 18px; z-index: 100; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin: 0;
}
@media print { .nav, .cta, .more, .foot__mark { display: none; } }
