/* Production additions shared by every page: form helpers, Cal.com embed, cookie banner. */

/* base reset: remove the browser's default page margin */
html,body{margin:0;padding:0}
img{max-width:100%}
/* no sideways drag on phones (clip keeps the sticky header working) */
html{overflow-x:hidden}
@supports (overflow-x:clip){html,body{overflow-x:clip}}
html,body{overscroll-behavior-x:none}

/* spam trap: hidden from people, bots fill it in */
.hp{position:absolute!important;left:-10000px!important;top:auto;width:1px;height:1px;overflow:hidden}

.consent{font-size:12.5px;line-height:1.5;color:var(--ink-3);margin-top:-4px}
.consent a{color:var(--blue);text-underline-offset:2px}

/* step 3: Cal.com inline calendar */
@media (min-width:981px){
  /* while picking a time, the booking card takes the full hero width */
  .hero-grid.scheduling{grid-template-columns:minmax(0,1fr)}
  .hero-grid.scheduling > :first-child{display:none}
  .hero-grid.scheduling .book{width:100%;max-width:1080px;margin-inline:auto}
  .hero-grid.scheduling .cal-shell{min-height:560px}
  .hero-grid.scheduling .cal-embed{min-height:560px}
}
.cal-shell{position:relative;min-height:440px;margin-inline:-10px;min-width:0}
.cal-embed{width:100%;max-width:100%;min-height:440px;overflow:hidden}
.book{min-width:0}
.cal-embed iframe{border:0}
.cal-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;font-size:14.5px;color:var(--ink-3);background:var(--card);border-radius:var(--r-input)}
.spinner{width:20px;height:20px;border-radius:50%;border:2.5px solid var(--mist);border-top-color:var(--terra);animation:hv-spin .8s linear infinite}
@keyframes hv-spin{to{transform:rotate(360deg)}}
.cal-fallback{margin-top:10px;padding-inline:10px;font-size:13.5px;color:var(--ink-2)}
.cal-fallback a{color:var(--blue);font-weight:600}
.done .hint{margin-top:2px}

/* checklist signup: confirmation that replaces the form */
.ck-done{display:flex;gap:14px;align-items:flex-start;background:var(--green-50);border:1px solid rgba(47,107,79,.25);border-radius:var(--r-input,14px);padding:16px 18px;outline:none;animation:hv-pop .35s ease-out}
.ck-done[hidden]{display:none}
.ck-done .ck-tick{flex:none;width:36px;height:36px;border-radius:50%;background:var(--green);color:var(--cream);display:grid;place-items:center}
.ck-done b{display:block;font-family:var(--serif);font-size:18px;line-height:1.3;color:var(--graphite);margin-bottom:4px}
.ck-done div > span{display:block;font-size:14.5px;line-height:1.5;color:var(--ink-2)}
.ck-done div > span b{display:inline;font-family:inherit;font-size:inherit;color:var(--graphite);margin:0;overflow-wrap:anywhere}
@keyframes hv-pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------- phone layout ---------- */
/* nav: menu button + dropdown with the section links */
.nav{position:relative}
.nav-toggle{display:none}
@media (max-width:900px){
  .nav .wrap{gap:12px}
  .nav-toggle{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:none;width:44px;height:44px;margin-right:-8px;padding:0;border:0;border-radius:12px;background:transparent;color:var(--blue);cursor:pointer}
  .nav-toggle span{display:block;width:22px;height:2px;border-radius:2px;background:currentColor;transition:transform .2s ease,opacity .2s ease}
  .nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
  .nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .nav ul{position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;margin:0;padding:6px 20px 14px;background:var(--cream);border-bottom:1px solid var(--mist);box-shadow:0 18px 30px -18px rgba(30,36,48,.28);font-size:17px}
  .nav.open ul{display:flex}
  .nav ul li + li{border-top:1px solid var(--mist)}
  .nav ul a{display:block;padding:14px 2px;color:var(--graphite)}
}
@media (max-width:380px){
  .nav .wrap{gap:8px}
  .logo{width:88px;height:36px}
  .nav .btn-sm{padding:9px 14px;font-size:14px}
}
@media (prefers-reduced-motion: reduce){.nav-toggle span{transition:none}}

/* "What Harvest is, and isn't." on two lines on phones, breaking after the comma */
.h-keep{display:inline-block}
@media (max-width:760px){.h-keep{display:block}}

/* "As a Harvest member" rows: keep values left-aligned when stacked */
@media (max-width:520px){.crow b{text-align:left}}

/* deal flow: section header before the example deal */
@media (max-width:940px){.deal-grid > div:last-child{order:-1}}

/* founder cards: photo left, name/role/LinkedIn right, bio full width below */
@media (max-width:560px){
  .fcard{grid-template-columns:96px 1fr;column-gap:18px;row-gap:0;padding:24px;align-items:start}
  .fcard > div{display:contents}
  .fcard .photo{grid-column:1;grid-row:1 / span 3;width:96px;height:116px;border-radius:14px}
  .fcard h3,.fcard .role,.fcard .acts{grid-column:2}
  .fcard h3{grid-row:1;align-self:end}
  .fcard .role{grid-row:2;margin:4px 0 0}
  .fcard .acts{grid-row:3;margin-top:10px;align-self:start}
  .fcard > div > p:not(.role){grid-column:1 / -1;grid-row:4;margin:18px 0 0}
}

/* note under the booking card about where membership is open */
.geo-note{margin-top:14px;padding:12px 14px;border:1px solid var(--terra-100);border-left:3px solid var(--terra);border-radius:10px;background:var(--terra-50);font-size:13px;line-height:1.55;color:var(--ink-2);outline:none}
.geo-note p{margin:0}
.geo-note p + p{margin-top:6px}
.geo-note b{color:var(--graphite)}
.geo-note a{color:var(--terra-600);font-weight:600}

/* waitlist button inside the first FAQ answer */
.faq-cta{margin-top:14px}

/* waitlist mode: the booking card reframes itself when someone arrives from a waitlist link */
.wl-note{margin:0;padding:10px 12px;border-radius:10px;background:var(--terra-50);border:1px solid var(--terra-100);font-size:13px;line-height:1.5;color:var(--ink-2)}
.wl-note[hidden]{display:none}
.wl-note b{color:var(--graphite)}
.wl-note.good{background:var(--green-50);border-color:rgba(47,107,79,.25)}
.book.wl .progress,.book.wl .step-label{display:none}

/* booking step 2: "Optional" tag next to the referral label */
.field > label .opt{margin-left:6px;font-size:12.5px;font-weight:500;color:var(--ink-3)}

/* booking steps: focus lands on the step, no outline needed */
.step:focus{outline:none}

/* answer chips: respond instantly to taps */
.chip{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.chip input{touch-action:manipulation}
@media (hover:none),(max-width:760px){.chip span{transition:none}}

/* founder LinkedIn icons: no hover on touch screens, so show them in full color */
@media (hover:none),(max-width:760px){.fcard .li{color:var(--blue)}}

/* phones: "Managing Partner" on its own line; hero skips the 25-minute line */
@media (max-width:760px){
  .fcard .role-2{display:block}
  .hero-call{display:none}
  .hero .sub-types{margin-bottom:0}
}

/* FAQ: no extra Book button on phones (the header one is always visible) */
@media (max-width:760px){.faq-side > div{display:none}}

/* final section: less empty space above the footer on phones */
@media (max-width:760px){
  .final{padding-bottom:170px}
  .final .eyebrow{letter-spacing:.14em}
  .final .eyebrow::before{display:none}
  .final::after{width:760px}
}

/* cookie consent */
.cc{position:fixed;left:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:90;max-width:460px;background:var(--graphite);color:var(--cream);border-radius:var(--r-card);padding:18px 20px;box-shadow:0 18px 40px -16px rgba(5,14,34,.55);display:grid;gap:14px;font-size:14px;line-height:1.5}
.cc p{margin:0;color:rgba(246,244,242,.85)}
.cc a{color:var(--terra-300)}
.cc-actions{display:flex;gap:10px;flex-wrap:wrap}
.cc-actions button{border:1.5px solid rgba(246,244,242,.35);background:transparent;color:var(--cream);border-radius:var(--r-pill);padding:9px 18px;font:inherit;font-weight:600;cursor:pointer}
.cc-actions button.cc-yes{background:var(--terra);border-color:var(--terra)}
.cc-actions button:hover{border-color:var(--cream)}
@media (max-width:760px){.cc{right:16px;max-width:none;bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
.cc-link{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.cc-link:hover{color:var(--cream)}

@media (prefers-reduced-motion: reduce){.spinner{animation-duration:2.4s}.ck-done{animation:none}}

/* ---------- sticky diligence-checklist bar (homepage) ---------- */
.ckbar{position:fixed;left:0;right:0;bottom:0;z-index:60;background:rgba(251,250,248,.97);border-top:1px solid var(--stone);box-shadow:0 -14px 34px -22px rgba(5,14,34,.5);padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));transform:translateY(110%);transition:transform .28s ease}
.ckbar[hidden]{display:none}
.ckbar.show{transform:none}
.ckbar-in{max-width:1120px;margin:0 auto;display:flex;align-items:center;gap:18px}
.ckbar-copy{margin:0;flex:1 1 auto;min-width:0;font-size:14px;line-height:1.4;color:var(--ink-2)}
.ckbar-copy b{color:var(--graphite)}
.ckbar-form{display:flex;gap:10px;flex:0 1 460px;align-items:center}
.ckbar-form .input{flex:1 1 180px;min-width:0;padding-top:11px;padding-bottom:11px}
.ckbar-form .btn{flex:none;padding:12px 20px;font-size:14.5px;white-space:nowrap}
.ckbar-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ckbar-done{margin:0;flex:1 1 auto;font-size:14.5px;font-weight:600;color:var(--green)}
.ckbar-done[hidden]{display:none}
.ckbar-x{flex:none;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;font-size:22px;line-height:1;color:var(--ink-3);cursor:pointer}
.ckbar-x:hover{background:var(--mist);color:var(--graphite)}
body.has-ckbar{padding-bottom:78px}

@media (max-width:860px){
  .ckbar-copy span{display:none}
}
@media (max-width:640px){
  .ckbar{padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px))}
  .ckbar-in{flex-wrap:wrap;gap:8px 10px}
  .ckbar-copy{flex:1 1 auto;font-size:13px}
  .ckbar-form{flex:1 1 100%;order:3}
  .ckbar-form .btn{padding:12px 16px}
  .ckbar-x{order:2}
  body.has-ckbar{padding-bottom:126px}
}
@media (max-width:380px){
  .ckbar-form .btn{padding:12px 12px;font-size:13.5px}
}
@media (prefers-reduced-motion: reduce){.ckbar{transition:none}}

/* keep the cookie banner clear of the checklist bar while both are on screen */
body.has-ckbar .cc{bottom:calc(90px + env(safe-area-inset-bottom,0px))}
@media (max-width:640px){body.has-ckbar .cc{bottom:calc(124px + env(safe-area-inset-bottom,0px))}}

/* ---------- diligence-checklist lightbox (homepage) ---------- */
.ckm{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}
.ckm[hidden]{display:none}
.ckm-scrim{position:absolute;inset:0;background:rgba(10,20,45,.62);opacity:0;transition:opacity .25s ease}
.ckm.show .ckm-scrim{opacity:1}
.ckm-box{position:relative;width:100%;max-width:620px;max-height:calc(100vh - 40px);overflow:auto;background:var(--card);border-radius:22px;box-shadow:0 40px 90px -30px rgba(5,14,34,.7);opacity:0;transform:translateY(14px) scale(.985);transition:opacity .25s ease,transform .25s ease}
.ckm.show .ckm-box{opacity:1;transform:none}
.ckm-art{position:relative;background:var(--blue);overflow:hidden;aspect-ratio:2/1}
.ckm-art img{width:100%;height:100%;object-fit:cover;display:block}
.ckm-body{padding:28px 30px 24px;display:flex;flex-direction:column;gap:12px;min-width:0}
.ckm-eyebrow{margin:0;font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--terra)}
.ckm-body h2{margin:0;font-family:var(--serif);font-size:27px;line-height:1.18;color:var(--graphite)}
.ckm-sub{margin:0;font-size:14.5px;line-height:1.55;color:var(--ink-2)}
.ckm-form{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.ckm-form .btn{width:100%;justify-content:center}
.ckm-fine{margin:0;font-size:12px;line-height:1.5;color:var(--ink-3)}
.ckm-fine a{color:var(--blue);font-weight:600}
.ckm-x{position:absolute;top:12px;right:12px;z-index:2;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:rgba(251,250,248,.92);font-size:24px;line-height:1;color:var(--ink-2);cursor:pointer;box-shadow:0 4px 14px -6px rgba(5,14,34,.5)}
.ckm-x:hover{background:var(--card);color:var(--graphite)}

@media (max-width:760px){
  .ckm{padding:14px}
  .ckm-box{max-height:calc(100vh - 28px)}
  .ckm-body{padding:22px 20px 20px;gap:10px}
  .ckm-body h2{font-size:22px}
  .ckm-sub{font-size:14px}
}
@media (max-height:620px){
  .ckm-art{display:none}
}
@media (prefers-reduced-motion: reduce){.ckm-scrim,.ckm-box{transition:none}}
