/* headcount.cloud. Tokens from design/README.md ("Brand and site"). Light only, like the canvas. */
:root {
  --paper: #F5EFE3;
  --card: #FBF7EF;
  --line: #E6DCCB;
  --ink: #221E19;
  --ink-2: #4A433B;
  --muted: #6B6359;
  --needs: #C8236A;
  --serif: 'Instrument Serif', Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 'Geist', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--ink-2); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; }
.page { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px); }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }

/* Characters: square-ish boxes sized before the script paints them (viewBox 128×120). */
.hc { display: inline-block; flex: none; width: var(--s, 96px); height: calc(var(--s, 96px) * 0.9375); line-height: 0; }
@keyframes hcBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes hcBreathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, 0.975); } }
@keyframes hcHop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-7px); } 90% { transform: translateY(0); } }
.hc-working, .hc-idle, .hc-needs { transform-box: fill-box; transform-origin: 50% 100%; }
.hc-working { animation: hcBob 1.2s ease-in-out infinite; }
.hc-idle { animation: hcBreathe 4s ease-in-out infinite; }
.hc-needs { animation: hcHop 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .hc-working, .hc-idle, .hc-needs { animation: none; } }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 28px; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav-links a { text-decoration: none; padding: 12px 0; }
.nav-links .pill { padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 999px; }

.eyebrow { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.small { margin: 0; font-size: 13px; color: var(--muted); }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: clamp(24px, 4vw, 56px) 0 36px; }
/* Two lines on desktop ("You don't have to / do it all yourself.") so the crew shows above the fold. */
.hero h1 { margin: 0; font-size: clamp(48px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.015em; max-width: 19ch; text-wrap: balance; }
.lede { margin: 0; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 40ch; }
.goal-form { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.goal-form label { font-size: 14px; font-weight: 500; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
input[type=text], input[type=email] { flex: 1 1 300px; min-width: 0; height: 56px; padding: 0 18px; font: inherit; font-size: 17px; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; }
input::placeholder { color: var(--muted); }
button { flex: 1 0 auto; height: 56px; padding: 0 26px; font: inherit; font-size: 16px; font-weight: 600; border: 0; border-radius: 14px; cursor: pointer; }
@media (min-width: 640px) { button { flex: 0 0 auto; } }
button:disabled { opacity: 0.6; cursor: wait; }
button.ink { color: var(--paper); background: var(--ink); }
button.paper { color: var(--ink); background: var(--paper); }
:focus-visible { outline: 2.5px solid var(--needs); outline-offset: 2px; }

.card { background: var(--card); border: 1px solid var(--line); }
.crew { border-radius: 28px; padding: clamp(24px, 3vw, 36px) clamp(12px, 3vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.crew-name { font-size: 26px; line-height: 1; }
#crew-cos { --s: clamp(96px, 9vw, 120px) !important; }
#crew-caption { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); text-align: center; min-height: 22px; }
.seats { align-self: stretch; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 4px; }
@media (min-width: 900px) { .seats { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.seat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seat .hc { --s: clamp(64px, 18vw, 96px); }
.seat.on { color: var(--ink); }
@media (max-width: 480px) { .seat { font-size: 11px; } }

.how { padding: clamp(80px, 10vw, 140px) 0 0; display: flex; flex-direction: column; gap: 40px; }
.how-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.how h2, .cta h2 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.step { border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.step h3 { margin: 0; font-size: 32px; line-height: 1; }
.step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.art { height: 180px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.art-col { flex-direction: column; gap: 10px; }
.chip { padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--paper); }
.stem { width: 1.5px; height: 16px; background: var(--ink); }
.mini-plan { width: 150px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mini-title { font-size: 12px; font-weight: 600; }
.bar { height: 6px; border-radius: 3px; background: var(--line); }
.w80 { width: 80%; } .w60 { width: 60%; }
.approve { margin-top: 4px; text-align: center; font-size: 12px; font-weight: 600; color: #fff; background: var(--needs); border-radius: 8px; padding: 6px 0; }
.trio { display: flex; align-items: flex-end; gap: 4px; }
.measured { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: #DCEDE9; color: #1E4F47; font-weight: 500; }

.promise { padding: clamp(80px, 10vw, 140px) 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.promise .big { margin: 0; font-size: clamp(36px, 5vw, 68px); line-height: 1.05; max-width: 18ch; }
.promise p:not(.big) { margin: 0; color: var(--ink-2); max-width: 46ch; }

.cta { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; scroll-margin-top: 24px; }
.cta-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.cta-text > p { margin: 0; color: #D9D0C2; max-width: 44ch; }
.cta .small { color: #B9AF9F; }
.cta input[type=email] { background: #2E2924; color: var(--paper); border-color: #6B6359; }
.cta input::placeholder { color: #A99E8E; }
.cta :focus-visible { outline-color: var(--paper); }
.join { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; max-width: 560px; }
.cta-crew { display: flex; align-items: flex-end; justify-content: center; gap: 2px; flex: 0 1 auto; flex-wrap: wrap; background: var(--paper); border-radius: 22px; padding: 28px 24px 20px; }
@media (max-width: 640px) {
  .cta-crew { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; padding: 24px 12px 16px; }
  .cta-crew .hc { --s: 12vw !important; }
  .cta-crew .hc[data-dept=cos] { --s: 16vw !important; }
}

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.footer .serif { font-size: 22px; color: var(--ink); }
.footer a { color: var(--muted); }

@media (max-width: 480px) { .hide-phone { display: none; } .brand { font-size: 24px; } }
