/* KYLER · brand system
   Palette: Sequoia (cold, desaturated)
   Type: Space Grotesk headlines, Hanken Grotesk body */

:root {
  --fog: #E5E9EA;
  --charcoal: #1B2A20;
  --deep-pine: #244836;
  --pine: #3C6149;
  --sage: #4F6C59;
  --moss: #6F8B79;
  --slate: #4E6068;
  --light-mist: #92A6AC;
  --ink: #36433E;
  --muted: #7E8788;
  --paper: #F2F4F4;
  --line: rgba(27, 42, 32, 0.12);
  --line-dark: rgba(229, 233, 234, 0.16);

  --head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --max: 1120px;
  --measure: 62ch;
  --pad: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16.5px, 1.05vw, 18px);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .head, .btn, .eyebrow, .wordmark {
  font-family: var(--head);
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.45rem); line-height: 1.05; font-weight: 700; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.08; font-weight: 700; margin: 0; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.2; font-weight: 700; margin: 0; }

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1.1rem;
  display: block;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 760px; }

section { padding-block: clamp(64px, 9vw, 132px); }
.section-tight { padding-block: clamp(48px, 6vw, 84px); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(229, 233, 234, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 24px;
}
.wordmark {
  font-weight: 700; font-size: 1.18rem; letter-spacing: 0.06em;
  text-decoration: none; color: var(--charcoal);
}
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); }
.nav a {
  font-family: var(--head); font-size: 0.85rem; font-weight: 500;
  text-decoration: none; color: var(--ink); letter-spacing: -0.01em;
  padding-block: 6px; border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--slate); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  padding: 15px 26px; border-radius: 2px; border: 1px solid var(--charcoal);
  background: var(--charcoal); color: var(--fog);
  text-decoration: none; cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
  font-family: var(--head); line-height: 1;
}
.btn:hover { background: var(--deep-pine); border-color: var(--deep-pine); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: default; }

.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }

.btn-light { background: var(--fog); color: var(--charcoal); border-color: var(--fog); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--charcoal); }

.btn-block { width: 100%; }

.textlink {
  font-family: var(--head); font-size: 0.9rem; font-weight: 600;
  color: var(--charcoal); text-decoration: none;
  border-bottom: 1px solid var(--slate); padding-bottom: 2px;
}
.textlink:hover { border-bottom-color: var(--charcoal); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 34px; }

/* ---------- dark panels ---------- */

.dark {
  background: var(--charcoal);
  color: rgba(229, 233, 234, 0.82);
}
.dark h1, .dark h2, .dark h3 { color: var(--fog); }
.dark .eyebrow { color: var(--moss); }
.dark .btn { background: var(--fog); color: var(--charcoal); border-color: var(--fog); }
.dark .btn:hover { background: #fff; border-color: #fff; }
.dark .btn-ghost { background: transparent; color: var(--fog); border-color: var(--line-dark); }
.dark .btn-ghost:hover { border-color: var(--fog); color: var(--fog); }
.dark .textlink { color: var(--fog); border-bottom-color: var(--light-mist); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(72px, 12vw, 148px) clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 17ch; }

.hero-grid { display: grid; gap: clamp(38px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .hero-grid h1 { max-width: 15ch; }
}

.portrait { margin: 0; }
.portrait picture, .portrait img {
  display: block; width: 100%; height: auto;
  border-radius: 3px;
}
.portrait img {
  filter: grayscale(0.12) contrast(1.02);
  box-shadow: 0 18px 50px rgba(27, 42, 32, 0.14);
}
@media (max-width: 959px) {
  .portrait { max-width: 340px; }
}
.hero .lede {
  margin-top: 28px; font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  color: var(--ink); max-width: 56ch;
}

/* ---------- proof strip ---------- */

.proof {
  border-block: 1px solid var(--line);
  padding-block: 26px;
  background: var(--paper);
}
.proof-label {
  font-family: var(--head); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.proof-names {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-family: var(--head); font-weight: 500; font-size: 0.95rem;
  color: var(--sage); letter-spacing: -0.01em;
}

/* ---------- generic layout ---------- */

.split {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}

.pull {
  font-family: var(--head); font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.32;
  color: var(--deep-pine); letter-spacing: -0.02em;
  border-left: 2px solid var(--moss); padding-left: 22px; margin: 34px 0 0;
  max-width: 46ch;
}
.dark .pull { color: var(--fog); border-left-color: var(--moss); }

/* ---------- frameworks ---------- */

.fw-grid { display: grid; gap: 1px; background: var(--line-dark); margin-top: 46px; }
@media (min-width: 860px) { .fw-grid { grid-template-columns: repeat(3, 1fr); } }

.fw {
  background: var(--charcoal);
  padding: clamp(26px, 3vw, 38px);
}
.fw h3 { margin-bottom: 8px; }
.fw .fw-sub {
  font-size: 0.86rem; color: var(--light-mist); margin: 0 0 22px;
  font-style: italic;
}
.fw ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.fw li { font-size: 0.94rem; line-height: 1.5; }
.fw li b { font-family: var(--head); color: var(--moss); font-weight: 700; }

/* ---------- playbook cards ---------- */

.cards { display: grid; gap: 18px; margin-top: 46px; }
@media (min-width: 880px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(24px, 2.6vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
a.card:hover { border-color: var(--slate); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(27,42,32,0.07); }

.card .stage {
  font-family: var(--head); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate);
}
.card p { font-size: 0.94rem; color: var(--ink); margin: 0; flex: 1; }
.card .go {
  font-family: var(--head); font-size: 0.86rem; font-weight: 600;
  color: var(--charcoal); display: inline-flex; align-items: center; gap: 8px;
}
.card .go span { color: var(--slate); }

.badge {
  display: inline-block; font-family: var(--head); font-size: 0.66rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 100px;
  padding: 4px 10px; align-self: flex-start;
}

/* ---------- fit lists ---------- */

.fit { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 44px; }
@media (min-width: 780px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit-col { background: var(--paper); padding: clamp(24px, 3vw, 36px); }
.fit-col h3 {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 20px;
}
.fit-col:first-child h3 { color: var(--pine); }
.fit-col:last-child h3 { color: #8a4a3c; }
.fit-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.fit-col li { font-size: 0.95rem; padding-left: 20px; position: relative; line-height: 1.5; }
.fit-col li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 1px; background: var(--muted);
}

/* ---------- forms ---------- */

.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--head); font-size: 0.8rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--charcoal);
}
.dark .field label { color: var(--fog); }
.field .hint { font-size: 0.8rem; color: var(--muted); }

input, textarea, select {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: 13px 14px; width: 100%; line-height: 1.45;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { resize: vertical; min-height: 128px; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(78, 96, 104, 0.16);
}
.row2 { display: grid; gap: 16px; }
@media (min-width: 620px) { .row2 { grid-template-columns: 1fr 1fr; } }

.reassure { font-size: 0.84rem; color: var(--muted); margin: 0; }
.dark .reassure { color: var(--light-mist); }

.formnote { font-size: 0.88rem; margin: 0; min-height: 1.2em; }
.formnote.error { color: #a8443a; }
.formnote.ok { color: var(--pine); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */

.site-footer { background: var(--charcoal); color: var(--light-mist); padding-block: 56px 40px; }
.site-footer .wordmark { color: var(--fog); }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer a { color: var(--light-mist); text-decoration: none; font-family: var(--head); font-size: 0.86rem; }
.site-footer a:hover { color: var(--fog); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: 0.8rem;
}

/* ---------- utility ---------- */

.hidden { display: none !important; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--charcoal);
  color: var(--fog); padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }
