/* The two pages the homepage's buttons lead to: /start (Try Chorana: a few questions, then sign in) and /demo (Book a
   demo: pick a slot on a calendar). They stand on styles.css (tokens, type, buttons, the header and footer) and add
   only what's theirs: a quiet header, cards on bone, the steps, the team, the calendar */

.flow-header .container{justify-content:space-between}
.flow-header .aside{display:flex;align-items:center;gap:14px;font-size:15px;color:var(--mute)}
.flow-header .aside a:not(.btn){color:var(--ink);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.flow-header .btn{height:42px;padding:0 18px;border-radius:999px;font-size:15px;box-shadow:none}
.flow{padding:clamp(24px,4vw,56px) 0 0}

/* a card on bone, white like the app's windows */
.card{border:1px solid var(--line-strong);border-radius:var(--r-lg);background:#fff;box-shadow:var(--shadow-app)}
.eyebrow{font:500 13px var(--mono);color:var(--mute)}
.field{display:flex;flex-direction:column;gap:8px}
.field + .field{margin-top:20px}
.field label,.field .label-like{font-size:14px;font-weight:600;color:var(--ink)}
.field .hint{font-size:13.5px;color:var(--mute)}
.input{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:#fff;color:var(--ink);
  font:400 16px/1.45 var(--font);outline:0;transition:border-color .15s,box-shadow .15s}
textarea.input{resize:vertical;min-height:96px}
.input::placeholder{color:var(--faint)}
.input:focus{border-color:var(--go);box-shadow:0 0 0 3px rgba(37,71,208,.18)}
.input[aria-invalid=true]{border-color:#B8361F}
.form-note{min-height:20px;margin-top:12px;font-size:14px;color:#B8361F}
.form-note:empty{display:none}

/* ---------- /start ---------- */
.start{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:clamp(28px,4vw,56px);align-items:start;max-width:1120px;margin:0 auto}
.steps-card{padding:clamp(24px,3.4vw,40px);container-type:inline-size}
.progress{display:flex;gap:6px;margin-bottom:28px}
.progress i{flex:1;height:4px;border-radius:2px;background:var(--line);transition:background .4s var(--ease)}
.progress i.on{background:var(--go)}
.step{display:none}
.step.on{display:block;animation:step-in .5s var(--ease) both}
@keyframes step-in{from{opacity:0;transform:translateX(18px)}}
.step h1{margin-top:10px;font:400 clamp(30px,3.4vw,42px)/1.1 var(--font);letter-spacing:-.035em}
.step .lead{margin:12px 0 28px;font:400 16px/1.6 var(--mono);color:var(--body)}
.ideas{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.ideas button{height:32px;padding:0 12px;border:1px solid var(--line-strong);border-radius:999px;background:var(--bg);color:var(--body);font:400 13.5px var(--font);cursor:pointer;transition:background .15s,border-color .15s}
.ideas button:hover{border-color:var(--go);background:var(--go-soft)}
.step-acts{display:flex;align-items:center;gap:12px;margin-top:32px}
.step-acts .btn{height:48px;padding:0 22px;border-radius:999px;font-size:16px}
.step-acts .back{margin-right:auto;border:0;background:none;padding:0 4px;color:var(--mute);font:500 15px var(--font);cursor:pointer}
.step-acts .back:hover{color:var(--ink)}

/* who's building it: two choices, then cofounders' emails */
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.choice{position:relative;display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid var(--line-strong);border-radius:var(--r);background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s var(--ease)}
.choice:hover{transform:translateY(-2px)}
.choice input{position:absolute;opacity:0}
.choice:has(input:checked){border-color:var(--go);box-shadow:0 0 0 3px rgba(37,71,208,.14)}
.choice:has(input:focus-visible){outline:2px solid var(--go);outline-offset:2px}
.choice .faces{display:flex;gap:4px}
.choice .faces img{width:40px;height:40px;image-rendering:pixelated}
.choice b{font-size:16px}
.choice small{font-size:13.5px;color:var(--mute)}
.mates{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.mates[hidden]{display:none}
.add-mate{align-self:flex-start;border:0;background:none;padding:4px 0;color:var(--go);font:600 14px var(--font);cursor:pointer}

/* the team: pixel faces you switch on and off */
.team{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hire{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--line-strong);border-radius:var(--r);background:#fff;cursor:pointer;transition:border-color .15s,background .15s,opacity .2s}
.hire input{position:absolute;opacity:0}
.hire img{width:44px;height:44px;image-rendering:pixelated;transition:filter .2s,opacity .2s}
.hire b{display:block;font-size:15px}
.hire small{display:block;font-size:12.5px;line-height:1.4;color:var(--mute)}
.hire .tog{width:34px;height:20px;border-radius:999px;background:var(--line-strong);position:relative;transition:background .2s}
.hire .tog::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .25s var(--ease)}
.hire:has(input:checked){border-color:var(--go);background:var(--go-soft)}
.hire:has(input:checked) .tog{background:var(--go)}
.hire:has(input:checked) .tog::after{transform:translateX(14px)}
.hire:not(:has(input:checked)) img{filter:grayscale(1);opacity:.55}
.hire:has(input:focus-visible){outline:2px solid var(--go);outline-offset:2px}
.hire:has(input:disabled){cursor:default}

/* the last step */
.ready-list{display:flex;flex-direction:column;gap:10px;margin:0 0 8px}
.ready-list li{display:flex;gap:12px;font:400 15px/1.55 var(--mono);color:var(--body)}
.ready-list li::before{content:'';flex:none;width:7px;height:7px;margin-top:9px;border-radius:2px;background:var(--go)}

/* beside the steps: the company's first room, filling in as you answer */
.preview{position:sticky;top:24px}
.preview .app{font-size:13.5px}
.preview .pane-body{min-height:300px}
.preview .crew{display:flex;flex-wrap:wrap;gap:4px;padding:12px 16px;border-top:1px solid var(--app-line)}
.preview .crew img{width:28px;height:28px;border-radius:3px;image-rendering:pixelated;animation:pop .45s cubic-bezier(.34,1.5,.64,1) both}
@keyframes pop{from{opacity:0;transform:scale(.4) translateY(8px)}}
.preview .goal div:empty::before{content:'What you\2019re building shows up here';color:var(--faint)}
.preview-note{margin-top:14px;text-align:center;font-size:13.5px;color:var(--mute)}

/* ---------- /demo ---------- */
.demo{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);max-width:1040px;margin:0 auto;overflow:hidden}
.host{display:flex;flex-direction:column;gap:22px;padding:clamp(24px,3vw,36px);border-right:1px solid var(--line);background:var(--bg-soft)}
.host .faces{display:flex}
.host .faces img{width:44px;height:44px;margin-right:-8px;border-radius:8px;box-shadow:0 0 0 3px var(--bg-soft);image-rendering:pixelated;background:var(--panel)}
.host h1{font:400 clamp(30px,3vw,38px)/1.1 var(--font);letter-spacing:-.035em}
.host p{font:400 15px/1.65 var(--mono);color:var(--body)}
.facts{display:flex;flex-direction:column;gap:10px}
.facts li{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--body)}
.facts svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--mute);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.links{display:flex;flex-direction:column;gap:8px;margin-top:auto}
.links a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line-strong);border-radius:var(--r);background:#fff;font-size:15px;font-weight:500;color:var(--ink);transition:border-color .15s,transform .15s var(--ease)}
.links a:hover{border-color:var(--go);transform:translateX(3px)}
.links a span{color:var(--mute);font-weight:400;font-size:13.5px}
.links a::after{content:'\2192';color:var(--go)}

.pick{padding:clamp(24px,3vw,36px)}
.pick h2{font:600 18px var(--font);letter-spacing:-.01em}
.pick .tz{margin-top:4px;font-size:13.5px;color:var(--mute)}
.when{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:28px;margin-top:22px}
.when.no-day{grid-template-columns:minmax(0,1fr)}
.when.no-day .slots{display:none}
.month{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.month b{font-size:16px}
.month button{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line-strong);border-radius:50%;background:#fff;color:var(--ink);cursor:pointer;transition:background .15s}
.month button:hover:not(:disabled){background:var(--panel)}
.month button:disabled{opacity:.35;cursor:default}
.month svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.days .dow{padding:6px 0;font:500 12px var(--mono);color:var(--mute)}
.day{position:relative;aspect-ratio:1;max-height:52px;border:0;border-radius:50%;background:none;color:var(--faint);font:500 15px var(--font);cursor:default}
.day.open{background:var(--go-soft);color:var(--go);font-weight:600;cursor:pointer;transition:background .15s,color .15s,transform .15s var(--ease)}
.day.open:hover{transform:scale(1.06)}
.day.today::after{content:'';position:absolute;left:50%;bottom:6px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:currentColor}
.day.on{background:var(--go);color:var(--go-ink)}
.day:focus-visible{outline:2px solid var(--go);outline-offset:2px}
.slots{display:flex;flex-direction:column;gap:8px;max-height:400px;overflow-y:auto;padding:2px 4px 2px 2px}
.slots .head{margin-bottom:4px;font-size:14px;font-weight:600}
.slot{display:flex;align-items:center;justify-content:center;flex:none;height:46px;border:1px solid var(--go);border-radius:var(--r-sm);background:#fff;color:var(--go);font:600 15px var(--font);cursor:pointer;
  animation:slot-in .35s var(--ease) both;animation-delay:calc(var(--i,0) * 25ms);transition:background .15s,color .15s}
@keyframes slot-in{from{opacity:0;transform:translateY(6px)}}
.slot:hover{background:var(--go-soft)}
.slot.taken{border-color:var(--line);color:var(--faint);text-decoration:line-through;cursor:default;background:none}
.slots .none{font-size:14px;color:var(--mute)}

.details{display:none;margin-top:4px}
.details.on{display:block;animation:step-in .45s var(--ease) both}
.chosen{display:flex;align-items:center;gap:12px;margin:18px 0 22px;padding:14px 16px;border-radius:var(--r);background:var(--go-soft);color:var(--go);font-weight:600}
.chosen svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chosen button{margin-left:auto;border:0;background:none;color:var(--go);font:500 14px var(--font);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.grid2 .field + .field{margin-top:0}
.grid2 + .field{margin-top:20px}
.details .btn-go{width:100%;height:50px;margin-top:24px;border-radius:999px;font-size:16px}

.booked{display:none;padding:clamp(28px,4vw,48px) 0;text-align:center}
.booked.on{display:block;animation:step-in .5s var(--ease) both}
.booked .tick{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--go);color:var(--go-ink);animation:pop .6s cubic-bezier(.34,1.5,.64,1) both}
.booked .tick svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.booked h2{margin-top:20px;font:400 32px/1.15 var(--font);letter-spacing:-.03em}
.booked p{max-width:44ch;margin:12px auto 0;font:400 15px/1.65 var(--mono);color:var(--body)}
.booked .acts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:26px}
.booked .acts .btn{border-radius:999px}

/* ---------- smaller screens ---------- */
/* a narrow steps card stacks its choices and its team */
@container (max-width:600px){.team{grid-template-columns:minmax(0,1fr)}}
@container (max-width:420px){.choices{grid-template-columns:minmax(0,1fr)}}
@media (max-width:980px){
  .start{grid-template-columns:minmax(0,1fr)}
  .preview{position:static;order:-1}
  .preview .pane-body{min-height:0}
  .demo{grid-template-columns:minmax(0,1fr)}
  .host{border-right:0;border-bottom:1px solid var(--line)}
  .links{margin-top:0}
}
@media (max-width:640px){
  .grid2{grid-template-columns:minmax(0,1fr)}
  .when{grid-template-columns:minmax(0,1fr)}
  .slots{max-height:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .slots .head,.slots .none{grid-column:1/-1}
  .flow-header .aside span{display:none}
  /* the calendar comes up sooner: the intro and links (the footer has them too) step aside */
  .host{gap:16px}
  .host > p,.host .links{display:none}
  .preview{display:none}
}
@media (prefers-reduced-motion:reduce){
  .step.on,.details.on,.booked.on,.slot,.preview .crew img,.booked .tick{animation:none}
}
