/* HTC howtocompany.xyz — from Kevin design pack (Geist / Instrument Serif) */
:root {
  --ink: #1c1b1a;
  --ink-2: #3d3a37;
  --ink-3: #55524e;
  --mute: #77736e;
  --line: #e7e5e2;
  --line-soft: #eeece9;
  --nav-line: #f0eeeb;
  --bg: #fff;
  --bg-soft: #f6f5f4;
  --bg-chrome: #fafaf9;
  --dot: #e2dfdb;
  --blue: #2459d4;
  --blue-ink: #1f4fc4;
  --blue-hover: #1a44a8;
  --blue-tint: #eef3fd;
  --blue-tint-h: #e3ebfc;
  --green: #23704a;
  --green-hover: #185436;
  --green-tint: #e9f2ec;
  --green-tint-h: #dde9e1;
  --max: 1200px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-btn: 10px;
  --font: Geist, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
.page-community a { color: var(--green); }
.page-community a:hover { color: var(--green-hover); }
.wrap {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nav-line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-logo img { height: 26px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { border-bottom-color: var(--ink); }

/* Type */
.eyebrow {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
}
.eyebrow-sm {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mute);
}
.pill-word {
  display: inline-block;
  border: clamp(3px, .5vw, 5px) solid var(--ink);
  border-radius: 999px;
  padding: 0 .32em .06em;
  line-height: 1.08;
}
.h1 {
  margin: 0;
  font-size: clamp(42px, 7.4vw, 86px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}
.h1-map { font-size: clamp(42px, 7vw, 80px); }
.lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.08;
}
.h2-band { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.03em; }
.h2-contact { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.04em; line-height: 1.05; }
.h2-mod { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.035em; line-height: 1.1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: var(--radius-btn);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn-blue { background: var(--blue); color: #fff !important; }
.btn-blue:hover { background: var(--blue-hover); color: #fff !important; }
.btn-green { background: var(--green); color: #fff !important; }
.btn-green:hover { background: var(--green-hover); color: #fff !important; }
.btn-outline {
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: #fff !important; }

/* Chips / badges */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
}
.chip-nav {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
}
.chip-nav:hover { background: var(--ink); color: #fff !important; }

/* Hero */
.hero {
  padding: 88px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.hero .h1 { max-width: 980px; }
.hero-wide .h1 { max-width: 1000px; }
.hero .lede { max-width: 560px; }
.hero-wide .lede { max-width: 640px; }
.hero-map .lede { max-width: 660px; }

/* Path cards (Home) */
.paths {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 18px;
  box-sizing: border-box;
}
.path-card {
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--ink) !important;
  min-height: 340px;
}
.path-card:hover { color: var(--ink) !important; }
.path-blue { background: var(--blue-tint); }
.path-blue:hover { background: var(--blue-tint-h); }
.path-green { background: var(--green-tint); }
.path-green:hover { background: var(--green-tint-h); }
.path-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.path-label { font-family: var(--mono); font-size: 16px; font-weight: 500; letter-spacing: .04em; }
.path-blue .path-label { color: var(--blue-ink); }
.path-green .path-label { color: var(--green); }
.path-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none;
}
.path-blue .path-arrow { background: var(--blue); }
.path-green .path-arrow { background: var(--green); }
.path-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 440px;
  text-wrap: balance;
}
.path-body { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 440px; }
.path-cta { margin-top: auto; font-size: 15px; font-weight: 500; }
.path-blue .path-cta { color: var(--blue-ink); }
.path-green .path-cta { color: var(--green); }

/* About strip (Home) */
.about-strip {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 110px 24px 0;
  box-sizing: border-box;
}
.about-strip-inner {
  border-top: 2px solid var(--ink);
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px;
}
.about-copy { display: flex; flex-direction: column; gap: 16px; }
.about-copy p {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: pretty;
}
.fact-row {
  display: grid;
  grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
}
.fact-row .k { color: var(--mute); }
.fact-row .v { font-weight: 500; }

/* Needs grid */
.section {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 110px 24px 0;
  box-sizing: border-box;
}
.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.need {
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.need-blue { background: var(--blue-tint); }
.need-green { background: var(--green-tint); }
.need-q {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-wrap: pretty;
}
.need-a { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mid-cta {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.mid-cta strong { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; display: block; }
.mid-cta span.sub { font-size: 15px; color: var(--ink-3); }

/* Procurement / funder band */
.band {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.band-blue { background: var(--blue-ink); }
.band-green { background: var(--green); }
.band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px;
}
.band .eyebrow-sm { opacity: .85; color: #fff; }
.band .h2-band { color: #fff; }
.band p { margin: 0; font-size: 16px; line-height: 1.5; opacity: .92; max-width: 440px; }
.band-fact {
  display: grid;
  grid-template-columns: minmax(120px, 40%) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: 15px;
  line-height: 1.4;
}
.band-fact .k { opacity: .8; }
.band-fact .v { font-weight: 500; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: rgba(255,255,255,.22);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.step {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.band-blue .step { background: var(--blue-ink); }
.band-green .step { background: var(--green); }
.step-n { font-family: var(--mono); font-size: 12px; opacity: .8; }
.step-t { font-size: 17px; font-weight: 600; }
.step-d { font-size: 14px; line-height: 1.45; opacity: .9; }

/* Evidence */
.evidence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 40px;
  align-items: center;
}
.evidence-copy { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.evidence-copy p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.browser {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(28,27,26,.3);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-chrome);
}
.browser-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.browser-shot {
  aspect-ratio: 16/10;
  background: #f6f5f3;
  overflow: hidden;
}
.browser-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Contact convert */
.convert {
  margin-top: 120px;
  background: var(--bg-soft);
  scroll-margin-top: 60px;
}
.convert-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px;
  align-items: start;
}
.convert-copy { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.convert-copy p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.promises { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.promise { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.promise .tick { font-weight: 600; }
.page-councils .promise .tick { color: var(--blue); }
.page-community .promise .tick { color: var(--green); }
.form-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 50px -30px rgba(28,27,26,.25);
}
.form-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.form-stack input,
.form-stack textarea,
.form-stack select {
  border: 1px solid #dcd9d5;
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 15px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.form-stack textarea { min-height: 100px; resize: vertical; }
.form-stack .hp { position: absolute; left: -9999px; }
.form-done { display: none; flex-direction: column; gap: 10px; }
.form-done.is-shown { display: flex; }
.form-stack.is-hidden { display: none; }
.done-icon {
  width: 44px; height: 44px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.page-councils .done-icon { background: var(--blue); }
.page-community .done-icon { background: var(--green); }
.form-done strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.form-done span { font-size: 15px; line-height: 1.5; color: var(--ink-3); }

/* MapClick */
.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
}
.tl-y { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.tl-t { font-weight: 500; }
.tl-arrow { color: #b8b4ae; }
.mod-chips {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}
.mod-list {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 96px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 96px;
  box-sizing: border-box;
}
.mod-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 36px;
  align-items: center;
  scroll-margin-top: 90px;
}
.mod-copy { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.mod-copy p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.swords-cta {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.swords-cta strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; display: block; }
.swords-cta span { font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.buyer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 18px;
}
.buyer-link {
  border-radius: 20px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink) !important;
}
.buyer-link:hover { color: var(--ink) !important; }
.buyer-blue { background: var(--blue-tint); }
.buyer-blue:hover { background: var(--blue-tint-h); }
.buyer-green { background: var(--green-tint); }
.buyer-green:hover { background: var(--green-tint-h); }
.buyer-link .path-arrow { flex: none; }
.buyer-link .path-label { font-size: 12px; }
.buyer-title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }

/* Simple pages (contact / privacy / about) */
.simple {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 0;
}
.simple .h1 { font-size: clamp(36px, 5vw, 56px); }
.simple p, .simple li { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.simple h2 { font-size: 22px; margin: 32px 0 12px; letter-spacing: -0.02em; }

/* Footer */
.footer {
  max-width: var(--max);
  width: 100%;
  margin: auto auto 0;
  padding: 96px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-sizing: border-box;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 32px; width: auto; align-self: flex-start; }
.footer-tag { font-family: var(--serif); font-size: 20px; color: var(--ink-2); }
.footer-links { display: flex; gap: 22px; font-size: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); }
.footer-links a:hover { color: var(--ink); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--mute);
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}
.footer-base a { color: var(--mute); }

@media (max-width: 640px) {
  .hero { padding-top: 56px; }
  .section, .about-strip { padding-top: 72px; }
  .convert { margin-top: 72px; }
  .convert-inner { padding: 56px 24px; }
  .mod-list { gap: 56px; padding-top: 56px; }
  .path-card { min-height: 0; }
}

/* Call UX: closed → open → done */
.js-call-form[hidden],
.js-call-closed[hidden],
.js-call-done[hidden],
.js-call-mid-idle[hidden],
.js-call-mid-done[hidden] { display: none !important; }
.js-call-done.is-shown { display: flex !important; }
