/* Nodewell site. Brand tokens match Nodewell/terms and the email signature. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-latin-wght.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --noir: #172B36;
  --teal: #114C5A;
  --forsythia: #FFC801;
  --saffron: #FF9932;
  --mint: #D9E8E2;
  --arctic: #F1F6F4;
  --white: #FFFFFF;
  --muted: #4F636B;
  --rule: #C9DBD4;
  --error: #A3261B;

  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --section: 88px;
  --radius-sm: 6px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* Keeps the hidden attribute working on elements that set their own display, such as the form. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--arctic);
  color: var(--noir);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: 68px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--noir); color: var(--white); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

/* The yellow square from the logo, reused as the brand's full stop. */
.sq {
  display: inline-block;
  width: .2em; height: .2em;
  margin-left: .06em;
  background: var(--forsythia);
  vertical-align: baseline;
}
.sq-lg { width: 28px; height: 28px; margin: 0 0 16px; display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  font-family: var(--body); font-weight: 600; font-size: 16px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--forsythia); color: var(--noir); }
.btn-primary:hover { background: #F2BD00; text-decoration: none; }
.btn-quiet { background: transparent; color: var(--noir); border-color: var(--noir); }
.btn-quiet:hover { background: var(--noir); color: var(--white); text-decoration: none; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(241, 246, 244, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.03em; line-height: 1; color: var(--noir); text-decoration: none;
}
.wordmark .sq { width: 7px; height: 7px; margin-left: 2px; }

/* Hero */
.hero { padding: 56px 0 var(--section); }
.hero-inner { display: grid; gap: 48px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 70px); letter-spacing: -0.035em; line-height: 1.02; max-width: 11em; }
.hero h1 .sq { width: .16em; height: .16em; margin-left: .05em; }
.lede { margin-top: 24px; font-size: clamp(18px, 2vw, 20px); line-height: 1.55; max-width: 34em; color: var(--noir); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* "What kind of business do you run?" Inline, never a pop-up; the page works without an answer. */
.picker {
  position: relative;
  margin-top: 32px; padding: 24px 20px 22px;
  max-width: 38em;
  background: var(--noir); color: var(--white);
  border-radius: var(--radius);
}
/* The logo's square, sitting on the panel's corner, ties the question to the brand. */
.picker::before {
  content: ''; position: absolute; top: -9px; left: 20px;
  width: 18px; height: 18px; background: var(--forsythia);
}
.picker-q { font-family: var(--display); font-weight: 700; font-size: clamp(21px, 2.4vw, 24px); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 6px; text-wrap: balance; }
.picker-sub { font-size: 15px; color: #B9CCC5; margin-bottom: 16px; }
.picker .sector-options button {
  min-height: 48px; padding: 0 18px; font-size: 16px; font-weight: 600;
  color: var(--white); background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(217, 232, 226, .45);
}
.picker .sector-options button:hover { border-color: var(--forsythia); background: rgba(255, 255, 255, .1); }
.picker .sector-options button[aria-pressed="true"] { background: var(--forsythia); border-color: var(--forsythia); color: var(--noir); }
.picker :focus-visible { outline-color: var(--forsythia); }
.picker-result:not(:empty) {
  margin-top: 18px; padding: 14px 16px;
  background: rgba(255, 255, 255, .08); border-left: 4px solid var(--forsythia); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px; line-height: 1.5; color: var(--white);
  transition: opacity .2s var(--ease);
}
.picker-result.swap, .pains li.swap { opacity: 0; }
.pains li { transition: opacity .2s var(--ease); }
.picker-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; color: var(--forsythia); }
.picker-link[hidden] { display: none; }
@media (min-width: 768px) { .picker { padding: 28px 28px 26px; } .picker::before { left: 28px; } }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--muted); }

.hero-diagram { margin: 0; }
.hero-diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-diagram text {
  font-family: var(--body); font-size: 17px; font-weight: 500;
  text-anchor: middle; fill: var(--noir);
}
.links-in path { stroke: var(--teal); stroke-width: 1.5; opacity: .55; }
.links-out path { stroke: var(--noir); stroke-width: 2; }
.src rect { fill: var(--white); stroke: var(--rule); stroke-width: 1.5; }
.hub rect { fill: var(--forsythia); }
.hub text { font-family: var(--display); font-weight: 700; font-size: 18px; }
.out rect { fill: var(--noir); }
.out text { fill: var(--white); font-weight: 600; }

/* The one orchestrated moment: the mess routes into the square, then out as clean work. */
@media (prefers-reduced-motion: no-preference) {
  .js .links-in path, .js .links-out path { stroke-dasharray: 320; stroke-dashoffset: 320; }
  .js .hub rect { transform-box: fill-box; transform-origin: center; transform: scale(.4); opacity: 0; }
  .js .out { opacity: 0; }
  .js .hero-diagram.play .links-in path { animation: draw .7s var(--ease) forwards; }
  .js .hero-diagram.play .links-in path:nth-child(2) { animation-delay: .06s; }
  .js .hero-diagram.play .links-in path:nth-child(3) { animation-delay: .12s; }
  .js .hero-diagram.play .links-in path:nth-child(4) { animation-delay: .18s; }
  .js .hero-diagram.play .links-in path:nth-child(5) { animation-delay: .24s; }
  .js .hero-diagram.play .hub rect { animation: pop .35s var(--ease) .75s forwards; }
  .js .hero-diagram.play .links-out path { animation: draw .45s var(--ease) 1.05s forwards; }
  .js .hero-diagram.play .out { animation: fade .3s var(--ease) 1.35s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); opacity: 1; } }
@keyframes fade { to { opacity: 1; } }

/* Sound familiar */
.familiar { background: var(--white); padding: var(--section) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.familiar-inner { display: grid; gap: 32px; }
.familiar-who { margin-top: 16px; color: var(--muted); max-width: 30em; }
.pains { list-style: none; margin: 0; padding: 0; }
.pains li {
  position: relative;
  padding: 18px 0 18px 30px;
  border-top: 1px solid var(--rule);
  font-size: 19px; line-height: 1.45;
}
.pains li:last-child { border-bottom: 1px solid var(--rule); }
.pains li::before {
  content: ''; position: absolute; left: 4px; top: 28px;
  width: 9px; height: 9px; border: 2px solid var(--teal); border-radius: 50%;
}

.familiar-stat {
  margin-top: 28px; padding-left: 16px; max-width: 30em;
  border-left: 4px solid var(--forsythia);
  font-size: 16px; color: var(--noir);
}
.familiar-stat strong { display: block; font-family: var(--display); font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 4px; }
.cite { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Ways I can help: their words on the left, the fixes on the right. */
.help { padding: var(--section) 0; }
.help-head p { margin-top: 16px; max-width: 34em; color: var(--muted); font-size: 18px; }

.sector { margin-top: 36px; display: grid; gap: 10px; }
.sector-label { font-size: 15px; font-weight: 600; }
.sector-options { display: flex; flex-wrap: wrap; gap: 8px; }
.sector-options button {
  min-height: 44px; padding: 0 16px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--noir);
  background: var(--white); border: 1.5px solid var(--rule); border-radius: 999px;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.sector-options button:hover { border-color: var(--noir); }
.sector-options button[aria-pressed="true"] { background: var(--noir); border-color: var(--noir); color: var(--white); }

.help-list { margin-top: 40px; border-top: 2px solid var(--noir); }
.help-row { display: grid; gap: 20px; padding: 36px 0; border-bottom: 1px solid var(--rule); }
.help-pain h3 { font-size: 23px; }
.help-pain blockquote {
  margin: 16px 0 0; padding: 14px 18px;
  background: var(--white); border-left: 4px solid var(--forsythia); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.45; letter-spacing: -0.005em;
  transition: opacity .2s var(--ease);
}
.help-pain blockquote::before { content: '\201C'; }
.help-pain blockquote::after { content: '\201D'; }
.help-pain blockquote.swap { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .help-pain blockquote { transition: none; } }

.help-fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.help-fixes li { position: relative; padding-left: 26px; color: var(--muted); }
.help-fixes li::before {
  content: ''; position: absolute; left: 2px; top: .55em;
  width: 9px; height: 9px; background: var(--teal);
}
.help-fixes strong { display: block; color: var(--noir); font-weight: 600; }
.help-fixes p { color: var(--muted); max-width: 36em; }
.help-fixes p + p { margin-top: 12px; color: var(--noir); font-weight: 500; }
.help-row-custom .help-pain blockquote { background: var(--noir); color: var(--white); }

/* How it works: a real sequence, so the steps are numbered and joined like nodes. */
.how { padding: var(--section) 0; background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 36px 64px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  background: var(--noir); color: var(--white);
  border-radius: var(--radius-sm);
}
.steps li:first-child::before { background: var(--forsythia); color: var(--noir); }
.steps li::after {
  content: ''; position: absolute; left: 19px; top: 44px; bottom: 4px;
  width: 2px; background: var(--rule);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps p { margin-top: 8px; color: var(--muted); max-width: 34em; }

/* Recent work */
.work { padding: 0 0 var(--section); }
.work-panel {
  background: var(--noir); color: var(--white);
  border-radius: var(--radius); padding: 40px 24px;
}
.work-kicker { color: var(--forsythia); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.work-panel h2 { color: var(--white); max-width: 18ch; }
.work-story { margin: 32px 0 0; display: grid; gap: 24px; }
.work-story div { border-top: 2px solid rgba(217, 232, 226, .25); padding-top: 16px; }
.work-story dt { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--mint); }
.work-story dd { margin: 8px 0 0; color: #E4EEEA; }

/* About */
.about { padding: 0 0 var(--section); }
.about-inner { display: grid; gap: 20px; }
.about-copy p { max-width: 36em; font-size: 19px; line-height: 1.6; }
.about-copy p + p { margin-top: 16px; }

/* Contact */
.contact { background: var(--teal); color: var(--white); padding: var(--section) 0; }
.contact-inner { display: grid; gap: 40px; align-items: start; }
.contact h2 { color: var(--white); max-width: 14ch; }
.contact-copy p { margin-top: 18px; max-width: 30em; color: #E4EEEA; font-size: 18px; }
.contact-copy a { color: var(--white); font-weight: 600; }
.contact-direct { font-size: 16px !important; }

.form-card {
  background: var(--white); color: var(--noir);
  border-radius: var(--radius); padding: 28px 20px;
}
.form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.field select {
  width: 100%; min-height: 48px; padding: 11px 40px 11px 14px;
  font: inherit; font-size: 16px; color: var(--noir);
  background: var(--arctic) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23172B36' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid var(--rule); border-radius: var(--radius-sm);
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--teal); background-color: var(--white); box-shadow: 0 0 0 3px rgba(17, 76, 90, .18); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit; font-size: 16px; color: var(--noir);
  background: var(--arctic);
  border: 1.5px solid var(--rule); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder { color: #7E9099; }
.field input:hover, .field textarea:hover { border-color: #A9C2B9; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px rgba(17, 76, 90, .18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-err { margin-top: 6px; font-size: 14px; color: var(--error); }
.form-note { font-size: 14px; color: var(--muted); text-align: center; }
.form-error { font-size: 15px; color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { padding: 12px 4px; }
.sent:focus { outline: none; }
.sent p { margin-top: 8px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--noir); color: #C7D6D0; padding: 40px 0; font-size: 15px; }
.footer-inner { display: grid; gap: 8px; }
.wordmark-light { color: var(--white); font-size: 22px; margin-bottom: 6px; }
.site-footer a { color: var(--white); }
.sep { margin: 0 8px; color: #6E848D; }

/* Tablet and up */
@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 112px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 36px 32px; }
  .work-panel { padding: 56px 48px; }
  .work-story { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 48px; row-gap: 40px; }
  .steps li, .steps li:last-child { padding-bottom: 0; }
  .steps li::after { display: none; }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero { padding-top: 72px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .familiar-inner { grid-template-columns: 1fr 1.25fr; gap: 64px; }
  .about-inner { grid-template-columns: 1fr 1.6fr; gap: 64px; }
  .contact-inner { grid-template-columns: 1fr 1.15fr; gap: 64px; }
  .contact-copy { position: sticky; top: 108px; }
  .help-row { grid-template-columns: 1fr 1.25fr; gap: 64px; padding: 48px 0; }
  .sector { grid-template-columns: auto 1fr; align-items: center; gap: 16px; }

  /* Steps become a left-to-right line of nodes. */
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .steps li { padding: 64px 0 0; }
  .steps li::before { top: 0; }
  .steps li::after {
    display: block; left: 48px; right: -24px; top: 19px; bottom: auto;
    width: auto; height: 2px;
  }
  .steps li:last-child::after { display: none; }
}

/* Privacy notice */
.legal { padding: 56px 0 var(--section); }
.legal-inner { max-width: 720px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); letter-spacing: -0.03em; }
.legal-updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
